]> 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>
Wed, 29 Apr 2015 10:39:51 +0000 (12:39 +0200)
commit2d8b57dcbd589628697f9a4d18f6d796652ca5cc
tree912a40dcdf8f12961e612e00d2937a6888ce89db
parentdfedd4aa38172600700ddb6d33e6151d8ecc6e87
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