OSDN Git Service

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