OSDN Git Service

Read an msdos partition table from a device with 2K sectors.
authorJim Meyering <jim@meyering.net>
Wed, 30 May 2007 13:55:30 +0000 (15:55 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 31 May 2007 08:38:49 +0000 (10:38 +0200)
commitb4c53f6d1474639e464d43d478bc4d41ac54dd52
treeced0ce100b73f7842efbf1b43766d81e98534bef
parent00918979023b3798fba04e379c13148d18de18f5
Read an msdos partition table from a device with 2K sectors.

* libparted/labels/dos.c: Include <stdbool.h>.
(msdos_probe): Don't hard-code 512.
Use read_sector, not ped_device_read.
Adapt to changed type of "part_table".
Now that "label" is malloc'd, be sure to free it before returning.
(read_table): Likewise.
libparted/labels/dos.c