OSDN Git Service

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