OSDN Git Service

libparted: fail (don't just warn) upon failure to inform kernel of...
authorJim Meyering <meyering@redhat.com>
Mon, 10 May 2010 11:00:20 +0000 (13:00 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 10 May 2010 11:10:12 +0000 (13:10 +0200)
commit2e842e056c618f5a71e1fa8cf135f2ad0248f069
treea619894c21126d7b2f7fcaf56656c96b6d96b92e
parenteedc6d77dc4b3488decd4dce9cb8cafaa95755ce
libparted: fail (don't just warn) upon failure to inform kernel of...

partition change(s).
* libparted/arch/linux.c (_disk_sync_part_table): Throw an error, not
merely a warning.  When this fails, it indicates that the kernel has
not been informed, and that must translate to an error, since doing
otherwise would violate the contract of ped_disk_commit_to_os.
Suggested by Hans De Goede.
libparted/arch/linux.c