]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: don't use BLKRRPART to check loopdev usage
authorKarel Zak <kzak@redhat.com>
Fri, 17 Apr 2015 08:32:48 +0000 (10:32 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 17 Apr 2015 08:32:48 +0000 (10:32 +0200)
commita53e37f9d4c9b7b88f13e44f5c82a0ac92dbfd6a
treeeaf3847fd52a951e71233ae4ed18a742b3f11b44
parent2daf61b734f00e69da576844258d3cc437359604
sfdisk: don't use BLKRRPART to check loopdev usage

It seesm that kernel always returns EINVAL for BLKRRPART on loop
devices, we call the ioctl to check if nobody else uses the device.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c