diff options
author | Pascal Terjan | 2007-09-04 00:10:16 +0200 |
---|---|---|
committer | Karel Zak | 2007-09-05 11:52:28 +0200 |
commit | edd867fac28720d4d9a7c05cc110dcf63a57b255 (patch) | |
tree | 469b737026f9b6eb48eec4181c6bfc721927d7e0 /AUTHORS | |
parent | rename: add description about option -V to manpage (diff) | |
download | kernel-qcow2-util-linux-edd867fac28720d4d9a7c05cc110dcf63a57b255.tar.gz kernel-qcow2-util-linux-edd867fac28720d4d9a7c05cc110dcf63a57b255.tar.xz kernel-qcow2-util-linux-edd867fac28720d4d9a7c05cc110dcf63a57b255.zip |
fdisk: doing useless ioctl when editing an image
When editing a disk image, fdisk wants to ask the kernel to reread the
partition table which is useless and provokes an error, a wrong exit
code and some waiting. This annoys me as I can't check the return code
in my script and because I have to wait a few seconds each time.
This trivial patch makes it only do the ioctl on block devices.
It also simplifies code by dropping some workaround for kernel 1.2.x
Signed-off-by: Pascal Terjan <pterjan@linuxfr.org>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions