OSDN Git Service

linux: detect dm_task_run failure
[android-x86/external-parted.git] / NEWS
1 GNU parted NEWS                                    -*- outline -*-
2
3 * Noteworthy changes in release ?.? (????-??-??) [?]
4
5 ** New features
6
7   parted now recognizes ATA over Ethernet (AoE) devices
8
9   parted now recognizes Linux Software RAID Arrays
10
11 ** Bug fixes
12
13   When libparted deferenced a /dev/mapper/foo symlink, it would keep the
14   resulting /dev/dm-N name and sometimes use it later, even though it
15   had since become stale and invalid.  It no longer stores the result
16   of dereferencing a /dev/mapper symlink.
17
18   libparted's msdos_partition_is_flag_available function now always reports
19   that the "hidden" flag is not available for an extended partition.
20   Similarly, msdos_partition_get_flag(p,PED_PARTITION_HIDDEN) always returns 0
21   for an extended partition.
22
23   libparted uses a more accurate heuristic to distinguish between
24   ext4 and ext3 partitions.
25
26   libparted now properly checks the return value of dm_task_run when
27   operating on devicemapper devices.
28
29 ** Changes in behavior
30
31   libparted no longer issues an exception/warning about >512-byte
32   sector support being "HIGHLY EXPERIMENTAL".  It seems to have matured
33   enough to be usable at least with GPT and MSDOS partition tables.
34
35
36 * Noteworthy changes in release 2.2 (2010-02-26) [stable]
37
38 ** Changes in behavior
39
40   The default alignment (--align option) for newly created partitions has
41   been changed to optimal.
42
43 ** New features
44
45   The ped_device_get_*_alignment() functions now return a sane default
46   value instead of NULL when the so called topology information is incomplete.
47   The default minimum alignment aligns to physical sector size, the default
48   optimal alignment is 1MiB, which is what vista and windows 7 do.
49
50 ** Bug fixes
51
52   Parted no longer uses a physical sector size of 0 or of any other
53   value smaller than the logical sector size.
54
55   dos: creating an HFS or HFS+ partition in an msdos partition table
56   used to set the partition type to 0x83.  That is wrong.  The required
57   number is 0xaf, and that is what is used now.
58
59   gpt: read-only operation could clobber MBR part of hybrid GPT+MBR table
60   [bug introduced in parted-2.1]
61
62   gpt: a read-only operation like "parted $dev print" would overwrite $dev's
63   protective MBR when exactly one of the primary and backup GPT tables was
64   found to be corrupt.
65   [bug introduced prior to parted-1.8.0]
66
67   sun: the version, sanity and nparts VTOC fields were ignored by libparted.
68   Those fields are properly initialized now. The nparts (number of partitions)
69   field is initialized to 8 (max. number of sun partitions) rather that to a
70   real number of partitions. This solution is compatible with Linux kernel
71   and Linux fdisk.
72
73   "make install" no longer installs tests programs named disk and label
74
75   libparted: try harder to inform kernel of partition changes.
76   Previously when editing partitions, occasionally the kernel would
77   fail to be informed of partition changes.  When this happened future
78   problems would occur because the kernel had incorrect information.
79   For example, if this problem arose when resizing or creating a
80   new partition, then an incorrect partition size might be displayed
81   or a user might encounter a failure to format or delete a newly
82   created partition, respectively.
83
84   libparted: committing a disk that was returned by ped_disk_duplicate
85   would always result in ped_disk_clobber being called (and thus the first
86   and last 9KiB of the disk being zeroed), even if the duplicated disk,
87   was not returned by ped_disk_fresh().
88
89
90 * Noteworthy changes in release 2.1 (2009-12-20) [stable]
91
92 ** New features
93
94   new --align=<align> commandline option which can have the following values:
95   none:     Use the minimum alignment allowed by the disk type
96   cylinder: Align partitions to cylinders (the default)
97   minimal:  Use minimum alignment as given by the disk topology information
98   optimal:  Use optimum alignment as given by the disk topology information
99   The minimal and optimal  values will use layout information provided by the
100   disk to align the logical partition table addresses to actual physical
101   blocks on the disks. The mininal value uses the minimum aligment needed to
102   align the partition properly to physical blocks, which avoids performance
103   degradation. Where as the optimal value uses a multiple of the physical
104   block size in a way that guarantees optimal performance.
105   The min and opt values will only work when compiled with
106   libblkid >= 2.17 and running on a kernel >= 2.6.31, otherwise they will
107   behave as the none --align value.
108
109   libparted: new functions to set per disk (instead of per partition) flags:
110   ped_disk_set_flag()
111   ped_disk_get_flag()
112   ped_disk_is_flag_available()
113   ped_disk_flag_get_name()
114   ped_disk_flag_get_by_name()
115   ped_disk_flag_next()
116
117   libparted: new per disk flag: PED_DISK_CYLINDER_ALIGNMENT. This flag
118   (which defaults to true) controls if disk types for which cylinder alignment
119   is optional do cylinder alignment when a new partition gets added.
120
121   libparted: new functions to return per-partition-table-type limits:
122     - ped_disk_max_partition_start_sector: Return the largest representable
123     start sector number for a given "disk".
124     - ped_disk_max_partition_length: Return the maximum partition length
125     for a given "disk".
126
127   new command "align-check TYPE N" to determine whether the starting sector
128   of partition N is TYPE(minimal|optimal)-aligned for the disk.  E.g.,
129       parted -s /dev/sda align-check min 1 && echo partition 1 is min-aligned
130       parted -s /dev/sda align-check opt 2 && echo partition 2 is opt-aligned
131   The same libblkid and kernel version requirements apply as for --align
132
133   Add functions to libparted to get minimal and optimal alignment
134   information from devices:
135   ped_device_get_minimal_aligned_constraint()
136   ped_device_get_optimal_aligned_constraint()
137   ped_device_get_minimum_alignment()
138   ped_device_get_optimum_alignment()
139   The same libblkid and kernel version requirements apply as for --align
140
141   Add ped_disk_get_partition_alignment() function to libparted to get
142   information about alignment enforced by the disk type.
143
144 ** Bug fixes
145
146   parted can once again create partition tables on loop devices.
147   Before, "parted -s /dev/loop0 mklabel gpt" would fail.
148   [bug introduced in parted-1.9.0]
149
150   improved >512-byte sector support: for example, printing a table on a
151   4k-sector disk would show "Sector size (logical/physical): 4096B/512B",
152   when the sizes should have been "4096B/4096B".
153
154   gpt tables are more rigorously checked; before, partition entry array CRCs
155   were not checked, and we would mistakenly use the AlternateLBA member of a
156   known-corrupt primary table.
157
158   improved dasd disk support, in previous versions calling
159   ped_disk_new_fresh() or ped_disk_duplicate() on a dasd type PedDisk
160   would fail.  This is fixed now.
161
162   handle device nodes created by lvm build with udev synchronisation enabled
163   properly.
164
165   when printing tables, parted no longer truncates flag names
166
167
168 * Noteworthy changes in release 2.0 (2009-10-06) [beta]
169
170 ** Improvements
171
172   Parted now supports disks with sector size larger than 512 bytes.
173   Before this release, Parted could operate only on disks with a sector
174   size of 512 bytes.  However, disk manufacturers are already making disks
175   with an exposed hardware sector size of 4096 bytes.  Prior versions of
176   Parted cannot even read a partition table on such a device, not to
177   mention create or manipulate existing partition tables.
178   Due to internal design and time constraints, the following
179   less-common partition table types are currently disabled:
180     amiga, bsd, aix, pc98
181   "bsd" and "amiga" are mostly done, but had a few minor problems,
182   so may remain disabled until someone requests that they be revived.
183
184 ** Bug fixes
185
186   big-endian systems can once again read GPT partition tables
187   [bug introduced in parted-1.9.0]
188
189   ped_partition_is_busy no longer calls libparted's exception handler,
190   since doing so caused trouble with anaconda/pyparted when operating on
191   dmraid devices.
192
193   Partitions in a GPT table are no longer assigned the "microsoft
194   reserved partition" type.  Before this change, each partition would
195   be listed with a type of "msftres" by default.
196
197
198 * Noteworthy changes in release 1.9.0 (2009-07-23) [stable]
199
200 ** Bug fixes
201
202   parted now preserves the protective MBR (PMBR) in GPT type labels.
203   http://lists.alioth.debian.org/pipermail/parted-devel/2008-December/\
204     002473.html
205   http://lists.gnu.org/archive/html/bug-parted/2008-12/msg00015.html
206
207   gpt_read now uses SizeOfPartitionEntry instead of the size of
208   GuidPartitionEntry_t.  This ensures that *all* of the partition
209   entries are correctly read.
210   http://lists.alioth.debian.org/pipermail/parted-devel/2008-December/\
211     002465.html
212   http://lists.alioth.debian.org/pipermail/parted-devel/attachments/\
213     20081202/b7c0528d/attachment.txt
214
215   mklabel (interactive mode) now correctly asks for confirmation, when
216   replacing an existent label, without outputting an error message.
217   http://lists.alioth.debian.org/pipermail/parted-devel/2009-January/\
218     002739.html
219
220   resize now handles FAT16 file systems with a 64k cluster.  This
221   configuration is not common, but it is possible.
222   http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/207
223
224   parted now ignores devices of the type /dev/md* when probing.  These
225   types of devices should be handled by the device-mapper capabilities
226   of parted.
227   http://lists.alioth.debian.org/pipermail/parted-devel/2009-April/\
228     002781.html
229
230   The parted documentation now describes the differences in the options
231   passed to mkpart for the label types.
232   http://lists.alioth.debian.org/pipermail/parted-devel/2009-April/\
233     002782.html
234
235 ** Changes in behavior
236
237   include/parted/beos.h, include/parted/gnu.h and include/parted/linux.h
238   have been removed.  The symbols contained in these files (GNUSpecific,
239   ped_device_new_from_store, BEOSSpecific, LinuxSpecific,  LINUX_SPECIFIC)
240   were moved to the individual files that need them.
241
242   In libparted, the linux-swap "filesystem" types are now called
243   "linux-swap(v0)" and "linux-swap(v1)" rather than "linux-swap(old)"
244   and "linux-swap(new)" as in parted 1.8, or "linux-swap" as in older
245   versions; "old" and "new" generally make poor names, and v1 is the
246   only format supported by current Linux kernels. Aliases for all
247   previous names are available.
248
249 * Noteworthy changes in release 1.8.8.1 (2007-12-17) [stable]
250
251 ** FIXME: fill in details
252
253 * Noteworthy changes in release 1.8.8 (2007-08-09) [stable]
254
255 ** GNU parted is now licensed under the GNU General Public License version 3
256    or higher.  See the COPYING file for more details.
257
258 ** libparted:
259   - Add compute_block_counts() to improve ext2fs support.
260   - Properly detect 'ext2 fs too small' cases.
261   - Move formatting commands out of translatable strings.
262   - Read an msdos partition table from a device with 2K sectors.
263   - Remove always-false "Unable to open" diagnostic in ped_disk_new(),
264     leave the "unrecognized disk label" diagnostic.
265   - Don't leak partition table buffer in amiga_read().
266   - Don't read/write initialized memory with DEBUG turned on off for
267     'mklabel bsd' and 'mklabel amiga' command calls.
268   - Turn off DEBUG in libparted.c to avoid initializing all allocated
269     memory to '1' bits.
270   - Correct handling of HeaderSize field in GPT labels.
271   - Fix block number used when checking for ext2 fs state.
272   - Add detection support for Xen virtual block devices (/dev/xvd*).
273   - When reading DASD labels, check the filesystem type as well as
274     partition flags to determine what's on the partition.
275   - Add _dm_probe_all() from Debian to probe for all device-mapper
276     devices.
277
278 ** parted:
279   - Fixed exception handling in mkpart and mkpartfs commands.
280   - Add the --dry-run option to the partprobe command.
281   - Update docs: cannot specify 'primary' for a partition on a loop
282     device.
283   - Remove unused functions (get_spaces).
284   - Fix off-by-one error in str_list_print_wrap().
285   - Use xmalloc() and xrealloc() to check return values.
286   - Fix invalid command line argument handling.
287   - Close memory leaks in parted.c and table.c.
288   - Fix warnings when compiling with translation support enabled.
289   - Use a consistent prompt when asking for a file system type.
290   - Update docs: don't reference old versions of gzip.
291
292 ** misc:
293   - Improve the testing framework in the tests/ subdirectory.  Build out
294     more of the testing scripts so we can start using that to ensure we
295     don't introduce regressions in releases.
296   - Support testing with tmpfs filesystems on Linux.
297   - Work around inadequate libreadline in the configure script.
298   - Don't include config.h from internal headers.
299
300 * Noteworthy changes in release 1.8.7 (2007-05-09) [stable]
301
302 ** libparted:
303   - Prevent compilation of DASD code on GNU Hurd systems.
304   - Integrate new unit testing framework for parted and libparted.
305   - Fix primary partition cylinder alignment error for DOS disk labels.
306   - Use PED_PARTITION_NORMAL in place of PED_PARTITION_PRIMARY.
307   - Avoid segfault due to a double free on reiserfs support.
308
309 ** parted:
310   - Fix script mode (-s) for mkfs command in parted.
311   - Suppress "you are not superuser..." warning in script mode.
312   - Fix off-by-one bug in parted when displaying information about the
313     disk.
314   - Do not translate partition names in the 'parted print' command.
315     This causes problems for non-Latin-based character sets.
316   - Send errors to stderr rather than stdout.
317   - Handle command line options independent of the order.
318   - Abort on any invalid option and handle -v and -h first.
319   - Only display the update /etc/fstab message when there has been a
320     change to the disk (a shorter and more direct message too).
321
322 * Noteworthy changes in release 1.8.6 (2007-03-20) [stable]
323
324 ** Revert the implementation of the linux-swap(new) and linux-swap(old) types.
325    The type is 'linux-swap' for v1, v2, and s1suspend swap partitions on Linux.
326
327 * Noteworthy changes in release 1.8.5 (2007-03-20) [stable]
328
329 ** Another minor update.  Both versions 1.8.3 and 1.8.4 lacked po translation
330    files.  These are included with version 1.8.5.
331
332 * Noteworthy changes in release 1.8.4 (2007-03-19) [stable]
333
334 ** Minor bug fix release for 1.8.3 to fix build issues on various
335    platforms:
336   - Use 'uname -m' to determine if we build on System Z or not.
337   - Include <parted/vtoc.h> in <parted/fdasd.h> for format1_label_t
338     definition.
339   - Remove unused variables in libparted/arch/linux.c (-Werror).
340   - Check return values on fgets() and asprint() in libparted/arch/linux.c
341     (-Werror).
342   - Check for tgetent() in libtinfo in the configure script.
343   - Move some macro definitions in <parted/disk.h> to fix a compile
344     problem with gcc-4.1.2 as indicated here:
345     http://lists.gnu.org/archive/html/bug-parted/2007-03/msg00008.html
346
347 * Noteworthy changes in release 1.8.3 (2007-03-16) [stable]
348
349 ** libparted:
350   - Header file clean ups.
351   - Sync the linux-swap header according to the Linux kernel sources.
352   - Enable support for swsusp partitions and the ability to differentiate
353     between old and new versions of linux-swap partitions.
354   - Renaming PARTITION_EXT to PARTITION_DOS_EXT in the DOS disklabel
355     code (consitency with Linux kernel source).
356   - Added libparted.pc pkg-config file.
357   - Remove unused functions, ifdefs, and other code.
358   - Deprecate ped_[register|unregister]_disk_type in favor of
359     ped_disk_type_[register|unregister].
360   - Small test program fixes (in label.c and common.c).
361   - Make functions const-correct.
362   - Handle systems where libreadline is not available.
363   - Preserve starting sector for primary NTFS 3.1 partitions on DOS
364     disklabel.
365   - Handle 2048-byte logical sectors in linux_read().
366   - Use PED_SECTOR_SIZE_DEFAULT macro in place of 512.
367   - Don't assume logical sector size is <= 512B on AIX.
368   - Detect HFS write failure.
369   - Use mkstemp() in place of mktemp().
370   - Added HFS+ resize support.
371   - Don't build DASD support on non-zSeries hardware.
372
373 ** parted/partprobe:
374   - Use fputs() and putchar() in place for printf(), when possible.
375   - Detect/report stdout write errors.
376   - Accept the --version and --help options.
377   - Fix memory leaks in parted(8).
378
379 ** general:
380   - Synchronize the manual page and --help documentation.
381   - GNU autoconf and automake updates.
382   - 'gcc -Wall -Wshadow' warning cleanups.
383   - Don't define _GNU_SOURCE manually.
384   - Documentation updates and cleanups (AUTHORS, copyright notices,
385     etc).
386   - Use gnulib (http://www.gnu.org/software/gnulib/).
387
388 * Noteworthy changes in release 1.8.2 (2007-01-12) [stable]
389
390 ** libparted:
391   - Add the ped_device_cache_remove() function to remove a device from
392     the cache.  This is necessary for some things that use libparted,
393     including pyparted.
394   - Fix a segfault in ped_assert() where the wrong pointer is freed in
395     the backtrace handler.
396   - Only call _disk_warn_loss(disk) in do_mklabel() if disk is not NULL.
397     Fixes a segfault when initializing new volumes.
398   - Dynamically allocate space for exception messages.
399   - Output a backtrace when catching SEGV_MAPPER or a general SIGSEGV.
400
401 ** parted:
402   - Destroy all objects before return when called with --list or --all
403     option.
404   - Zero sized device is shown as 0.00B and not -0.00kB.
405   - Implement 'print devices' command.
406   - Alias 'print list' to 'print all'.
407   - Alias 'mktable' to 'mklabel'.
408
409 ** misc:
410   - Other bug fixes, documentation updates, and translation improvements.
411   - Code and API clean-ups.
412
413 * Noteworthy changes in release 1.8.1 (2006-12-04) [stable]
414
415 ** libparted:
416   - Rework backtrace support.
417   - Code cleanups.
418   - Added --enable-selinux configure option to enable linking libparted with
419     libselinux and libsepol.
420   - Disable ext2fs resize for now, tell user to use resize2fs.
421
422 ** parted:
423   - Fix loop in print_all().
424   - Introduce the -list command-line switch.
425   - Make mktable aliased to mklabel.
426   - Warn before mklabel and mkfs.
427   - Code cleanups in _partition_warn_busy(), _disk_warn_busy(),
428     _partition_warn_loss(), and _disk_warn_loss().
429   - Avoid warning about user permissions when using --version.
430   - Fix 'print' command help.
431   - Proper print when there are no extended partitions, but partition names.
432
433 ** misc:
434   - Generate SHA-1 digest of the archive files and upload those along with the
435     actual archive files.
436   - Update translation files.
437   - Remove automatically generated files from version control.
438
439 * Noteworthy changes in release 1.8.0 (2006-11-17) [stable]
440
441 ** libparted:
442   - GPT fixes:
443        - Correctly handle disks with non-512 byte sector sizes
444        - Support LUN resizing (see new space, allow parted to use it)
445        - Prevent overlap of LastUsableLBA and PartitionEntryLBA in backup GPT
446   - Prevent SIGFPE when FAT sector size is 0
447   - Add ped_exception_get_handler()
448   - DASD support for IBM zSeries systems
449   - AIX disk label support
450   - Detect Promise SX8 storage devices
451   - Macintosh (ppc and x86) disk label improvements:
452        - Prevent LVM and RAID partition types from corrupting the table
453        - Fix removal of driver partition
454   - Add support binary units (MiB, KiB, GiB)
455   - In ped_register_disk_type(), handle disk_types==NULL case
456   - In ped_unregister_disk_type(), handle case where type is not registered
457   - Fix geometry read problems on 64-bit Macs (and probably other 64-bit systems)
458   - Add support for /dev/mapper devices via libdevmapper library
459   - Detect Apple_Boot partition types correctly on MacOS X 10.4 systems
460
461 ** parted:
462   - Various bug fixes, signal handling fixes, and spelling error fixes
463   - UI improvements to display more information about the disk and transport
464     layer
465
466 ========================================================================
467
468 Copyright (C) 2001-2010 Free Software Foundation, Inc.
469
470 Permission is granted to copy, distribute and/or modify this document
471 under the terms of the GNU Free Documentation License, Version 1.3 or
472 any later version published by the Free Software Foundation; with no
473 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
474 Texts.  A copy of the license is included in the ``GNU Free
475 Documentation License'' file as part of this distribution.