summaryrefslogtreecommitdiffstats
path: root/fdisk/sfdisk.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:24 +0100
committerKarel Zak2006-12-07 00:26:24 +0100
commitd162fcb550a77875c8f58fda0e0a0bd91f211c99 (patch)
treebd984959acd465b3058bd805f216d29dc0c3c1a6 /fdisk/sfdisk.c
parentImported from util-linux-2.12i tarball. (diff)
downloadkernel-qcow2-util-linux-d162fcb550a77875c8f58fda0e0a0bd91f211c99.tar.gz
kernel-qcow2-util-linux-d162fcb550a77875c8f58fda0e0a0bd91f211c99.tar.xz
kernel-qcow2-util-linux-d162fcb550a77875c8f58fda0e0a0bd91f211c99.zip
Imported from util-linux-2.12j tarball.
Diffstat (limited to 'fdisk/sfdisk.c')
-rw-r--r--fdisk/sfdisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fdisk/sfdisk.c b/fdisk/sfdisk.c
index 5c0c8d29f..7cebc33b4 100644
--- a/fdisk/sfdisk.c
+++ b/fdisk/sfdisk.c
@@ -792,7 +792,10 @@ static int
reread_ioctl(int fd) {
if (ioctl(fd, BLKRRPART)) {
perror("BLKRRPART");
- return -1;
+
+ /* 2.6.8 returns EIO for a zero table */
+ if (errno == EBUSY)
+ return -1;
}
return 0;
}