1 2006-11-11 Otavio Salvador <otavio@debian.org>
3 * libparted/debug.c (ped_assert): Print backtrace stack when
6 * libparted/Makefile.am: Add -rdynamic on LDFLAGS.
8 2006-11-10 Otavio Salvador <otavio@debian.org>
10 * libparted/filesys.c (ped_file_system_type_unregister): Handle
11 instances where fs_types == NULL and the given fs_type is not in
12 the list of registered file-system types. Some code clean-up.
13 Patch sent by Debarshi 'Rishi' Ray <debarshi.ray@gmail.com>.
15 * libparted/disk.c (ped_register_disk_type, ped_unregister_disk_type):
16 Clean-up. Patch sent by Debarshi 'Rishi' Ray <debarshi.ray@gmail.com>.
18 2006-11-08 Otavio Salvador <otavio@debian.org>
20 * libparted/fs/hfs/probe.c: Fix a segmentation fault when running
23 2006-11-05 David Cantrell <dcantrell@redhat.com>
24 * arch/linux.c: Define PROC_DEVICES_BUFSIZ for reading /proc/devices,
27 2006-11-02 David Cantrell <dcantrell@redhat.com>
28 * labels/mac.c (_rawpart_is_boot): Check for Apple_Boot type.
29 * labels/mac.c (_rawpart_analyse): Don't check the data_region_length
30 against the part->geom.length for boot partitions.
32 2006-10-31 David Cantrell <dcantrell@redhat.com>
33 * device.c (canonicalize_file_name): calloc should use sizeof(char)
34 instead of 1 (from Debarshi Ray).
35 * arch/linux.c (readFD): Use a 1KB buffer to read /proc/devices
36 rather than a 16KB buffer. Init filesize to zero at declaration.
37 Combine error and EOF check for read() loop. Memory cleanups at
38 function exit. Use malloc() instead of calloc() (from Debarshi
40 * arch/linux.c (_is_dm_major): Test expression and loop cleanups
43 2006-10-26 David Cantrell <dcantrell@redhat.com>
44 * arch/linux.c: Go to error_free_arch_specific rather than
45 error_free_dev for init_generic() failure on PED_DEVICE_UBD.
47 2006-10-11 David Cantrell <dcantrell@redhat.com>
48 * arch/linux.c: Conditionalize device-mapper stuff correctly so if the
49 user disables it, libparted still compiles.
51 2006-10-11 David Cantrell <dcantrell@redhat.com>
52 * Makefile.am: Add @DM_LIBS@ to libparted_la_LIBADD.
53 * arch/linux.c (readFD): Add read function used by _is_dm_major().
54 * arch/linux.c (_is_dm_major): Add test function to determine if a
55 given device number is a device-mapper major number.
56 * arch/linux.c (_device_stat): Set dev->type to PED_DEVICE_DM if the
57 device is a major device-mapper node. Call init_generic() for the
58 PED_DEVICE_DM devices.
59 * arch/linux.c: Added _dm_remove_map(), _dm_remove_map_name(),
60 _dm_is_part(), _dm_remove_parts(), _dm_add_partition(), and
61 _dm_reread_part_table() to support device-mapper devices.
62 * arch/linux.c (linux_disk_commit): If the device type is PED_DEVICE_DM,
63 return result of _dm_reread_part_table on the disk.
65 2006-10-09 David Cantrell <dcantrell@redhat.com>
66 * disk.c (ped_unregister_disk_type): Handle instances where disk_types
67 == NULL and the given type is not in the list of registered disk types
70 * cs/geom.c (ped_geometry_read): Do not throw PED_EXCEPTION_ERROR here
71 if accessing sectors outside of partition boundary. Returning false
72 causes ped_geometry_check() to shift correctly anyway. This occurs
73 on current Mac disklabels, among other systems.
75 2006-10-06 David Cantrell <dcantrell@redhat.com>
76 * arch/linux.c: Change __GNU_SOURCE define to _GNU_SOURCE (only one
77 underscore at the beginning). Fixes problem with certain systems
78 not getting posix_memalign() defined during compilation.
80 2006-09-15 David Cantrell <dcantrell@redhat.com>
81 * labels/Makefile.am: Removed fdasd.h and vtoc.h references.
83 2006-09-14 Olaf Hering <olh@suse.de>
84 * labels/mac.c (mac_partition_new): memset() inits everything to
85 zero, no need to do it manually.
87 * labels/mac.c (mac_partition_set_flag): Prevent LVM and RAID partition
88 types from corrupting the partition table.
90 * arch/linux.c (_blkpg_add_partition): Set linux_part.length based on
91 whether or not this partition is PED_PARTITION_EXTENDED or not.
93 * arch/linux.c (_disk_sync_part_table): Remove the check and continue
94 for PED_PARTITION_EXTENDED types.
96 2006-09-01 Darren Lavender <dl1@hppine99.gbr.hp.com>
97 * labels/gpt.c (gpt_read, _parse_header): added support for
98 LUN/device resize detection and optional GPT header correction.
100 * labels/gpt.c (_generate_header, gpt_write): fixed off-by-one
101 error in GPT header that allowed for overlap between LBAs of
102 LastUsableLBA and PartitionEntryLBA in backup-GPT.
104 2006-09-01 David Cantrell <dcantrell@redhat.com>
105 * fs/fat/fat.c (fat_probe): prevent SIGFPE when FAT sector size is 0.
107 * arch/linux.c: define VIODASD_MAJOR.
108 * arch/linux.c (_device_probe_type): check for PED_DEVICE_VIODASD.
109 * arch/linux.c (linux_new): init PED_DEVICE_VIODASD.
110 * arch/linux.c (_flush_cache, linux_open): open in O_DIRECT mode on
112 * arch/linux.c (linux_read, linux_write): modify reading and writing
113 to work correctly in O_DIRECT mode.
115 * exception.c: add ped_exception_get_handler().
117 * libparted.c (init_disk_types): call ped_disk_aix_init().
118 * libparted.c (done_disk_types): call ped_disk_aix_done().
120 * labels/dos.c (msdos_probe): if AIX physical volume detected, fail.
122 * labels/aix.c: add AIX disk label code from Matt Wilson.
123 * labels/aix.c: fix prototypes for aix_probe() and aix_alloc() so they
124 can be used in PedDiskOps.
126 * labels/vtoc.c (vtoc_error): make error buffer large enough for errors.
128 * labels/dasd.c: fix prototypes for dasd_probe() and dasd_alloc() so
129 they can be used in PedDiskOps.
130 * labels/dasd.c (dasd_probe): fix typos: dasd_initialize_anchor() ->
131 fdasd_initialize_anchor(), dasd_cleanup() -> fdasd_cleanup().
132 * labels/dasd.c (dasd_read): fix typo: DEBUG -> PDEBUG.
134 2006-08-31 David Cantrell <dcantrell@redhat.com>
135 * arch/linux.c: add DASD_MAJOR.
136 * arch/linux.c (_device_stat): check for DASD devices.
137 * arch/linux.c (init_dasd): add init_dasd() to gather device info
139 * arch/linux.c (init_generic): add dev->path to the error message so
140 users know what device had the failure.
142 * labels/Makefile.am: add dasd.c, fdasd.c, fdasd.h, vtoc.c, and vtoc.h
144 * labels/dasd.c: add DASD label code.
146 * labels/fdasd.c: add fdasd code (used by dasd.c).
148 * labels/vtoc.c: add VTOC code (wonderful EBCDIC util code).
150 * libparted.c (init_disk_types): if on zSeries, call
151 ped_disk_dasd_init().
153 * libparted.c (done_disk_types): if on zSeries, call
154 ped_disk_dasd_done().
156 2006-08-30 David Cantrell <dcantrell@redhat.com>
157 * arch/linux.c: add SX8_MAJOR1 and SX8_MAJOR2.
158 * arch/linux.c (_is_sx8_major): determine if given major number falls
159 in the range of Promise SX8 devices.
160 * arch/linux.c (_device_stat): check for SX8 devices.
162 2006-05-25 Leslie P. Polzer <polzer@gnu.org>
163 * fs/hfs/hfs.c (hfs_resize, hfsplus_resize): make hgee/hgms assertion
164 only when debugging is turned on.
166 * fs/ext2/ext2.c (ext2_open): removed call to ext2_determine_itoffset;
167 also moving it from this file to ext2_resize.c.
168 * fs/ext2/ext2_resize.c (ext2_resize): added call to
169 ext2_determine_itoffset and show a warning if not successful.
171 * labels/mac.c (strncasestr): search the whole type string for
172 'driver', not just the strlen of 'driver'. This fixes the detection of
173 driver partitions on mac disklabels.
175 * labels/mac.c (mac_partition_get_flag): added 'set 2 raid on/off'
176 capability for mac labels.
178 * labels/mac.c (struct MacRawDisk, struct MacPartitionData): fixed
179 data types of some fields (do not need to be 64 bit wide) and updated
180 meaning of reserved spaces.
182 * labels/mac.c (struct MacRawDisk, struct MacDeviceDriver, struct
183 MacDiskData, mac_alloc, _rawpart_has_driver, _rawpart_analyse,
184 mac_read, _pad_raw_part, _generate_raw_part, write_block_zero,
185 mac_write, mac_partition_new): fixes removal of driver partition;
186 this would previously crash MacOS 9.
188 2006-05-15 Leslie P. Polzer <polzer@gnu.org>
189 * fs/ext2/ext2_block_relocator.c (ext2_block_relocator_mark):
190 turned exception into warning and let it provide additional info.
192 2006-04-15 Leslie P. Polzer <polzer@gnu.org>
193 * labels/gpt.c (_parse_header): corrected endianness issue (one
196 2006-04-06 Jonathan duSaint <jon@rockgeeks.net>
197 * unit.c (ped_unit_get_size, parse_unit_suffix): added support for
200 2006-04-06 Leslie P. Polzer <polzer@gnu.org>
201 * arch/linux.c (_device_set_sector_size): handle sector size for
202 ioctl and printf correctly as "long long".
204 * labels/dvh.c (dvh_probe), labels/bsd.c (bsd_probe), labels/mac.c
205 (mac_probe), labels/pc98.c (pc98_probe), labels/sun.c (sun_probe),
206 labels/dos.c (dos_probe), labels/loop.c (loop_probe): immediately
207 return negative probe when the device's logical sector size is not
210 2006-03-30 Leslie P. Polzer <polzer@gnu.org>
211 * fs/reiserfs/reiserfs.c: added missing block size initializer.
213 2006-03-27 Leslie P. Polzer <polzer@gnu.org>
214 * arch/linux.c (linux_probe_all): probe standard devices before
215 /sys/block and /proc/partitions.
217 * labels/gpt.c: added Apple GUID support.
219 2006-03-08 Leslie P. Polzer <polzer@gnu.org>
220 * blkpg.h: moved to arch/.
222 2006-03-03 Leslie P. Polzer <polzer@gnu.org>
223 * labels/Makefile.am (liblabels_la_SOURCES): added "dvh.h".
225 * Makefile.am (libparted_la_SOURCES): fixed @OS@.c location.
227 * arch/linux.c (_probe_standard_devices): probe IDE devices before
230 2006-02-25 Leslie P. Polzer <polzer@gnu.org>
231 * labels/gpt.c (_read_header, gpt_read): fixed memory leaks.
233 2006-02-23 Leslie P. Polzer <polzer@gnu.org>
234 * labels/gpt.c (pth_free): fixed illegal memory deallocation by
235 freeing reserved space before parent.
237 * labels/gpt.c (pth_crc32): calculate crc32 from static size.
239 * labels/gpt.c (pth_free): free reserved field before freeing parent
242 * labels/gpt.c (pth_crc32): calculate crc32 from static size.
244 2006-02-20 Leslie P. Polzer <polzer@gnu.org>
245 * device.c: added ped_device_get_constraint.
248 -----------------------------------------------------------------------------
250 This file is part of GNU Parted
251 Copyright (C) 1999 - 2006 Free Software Foundation Inc.
253 This file may be modified and/or distributed without restriction. This is
254 not an invitation to misrepresent the history of GNU Parted.