OSDN Git Service

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