OSDN Git Service

linux: remove DASD restriction on _disk_sync_part_table
authorBrian C. Lane <bcl@redhat.com>
Mon, 22 Nov 2010 09:01:56 +0000 (10:01 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 22 Nov 2010 11:09:42 +0000 (12:09 +0100)
commit9fa0e1800db5b9f094ae481fd95a51da03f19e95
tree6d0c2ddc73a089e9dae8a3973eecf9fad4201ab9
parent7d9dc0fe3336825277122870449d6e076ade5e8a
linux: remove DASD restriction on _disk_sync_part_table

* libparted/arch/linux.c: Include <assert.h>.
(linux_disk_commit): Assert that _have_blkpg returns true
and don't skip _disk_sync_part_table for DASD devices.
Otherwise, when creating a partition on a DASD device,
new /dev/*[12...] device files would not be created.
Also, remove obsolete comment about DevFS.
For details, see http://bugzilla.redhat.com/651478
and http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10191
libparted/arch/linux.c