OSDN Git Service

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