OSDN Git Service

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