OSDN Git Service

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