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