]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: returns non-zero on failed BLKRRPART ioctl
authorAndrea Galbusera <gizero@gmail.com>
Tue, 3 May 2011 13:47:38 +0000 (15:47 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 6 May 2011 11:03:43 +0000 (13:03 +0200)
commite82810c6cf3fe94d2cf70d485a59c411ccb601b3
tree44fcfb1daa719b929092fbcbc7f64833605b3201
parentfe9a226158095c8d8eaea7a0cb593aa4a9cd3698
sfdisk: returns non-zero on failed BLKRRPART ioctl

Make sfdisk(8) return non-zero value on failed BLKRRPART ioctl().
This will happen for either partition table re-reads after partition
changes or on explicit use of -R switch.

The function reread_disk_partition() was changed from 'void' to 'int'
and now returns a result to let the calling functions decide to exit(1).

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
fdisk/sfdisk.c