OSDN Git Service

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