diff options
author | Karel Zak | 2007-11-07 19:05:31 +0100 |
---|---|---|
committer | Karel Zak | 2007-11-07 19:05:31 +0100 |
commit | 810f986b42ff7ecc805d134ef32013c3343df31e (patch) | |
tree | a3bed44c8f415166ea2d75dbb202793762f1ae43 /fdisk/fdisksgilabel.c | |
parent | mkswap: cleanup kB vs. KiB usage in error messages (diff) | |
download | kernel-qcow2-util-linux-810f986b42ff7ecc805d134ef32013c3343df31e.tar.gz kernel-qcow2-util-linux-810f986b42ff7ecc805d134ef32013c3343df31e.tar.xz kernel-qcow2-util-linux-810f986b42ff7ecc805d134ef32013c3343df31e.zip |
fdisk: cleanup BLK* ioctls usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisksgilabel.c')
-rw-r--r-- | fdisk/fdisksgilabel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c index 7e189fb3f..5adf64e39 100644 --- a/fdisk/fdisksgilabel.c +++ b/fdisk/fdisksgilabel.c @@ -24,6 +24,8 @@ #include "nls.h" #include <linux/major.h> /* FLOPPY_MAJOR */ +#include "blkdev.h" + #include "common.h" #include "fdisk.h" #include "fdisksgilabel.h" @@ -710,7 +712,7 @@ create_sgilabel(void) other_endian = (BYTE_ORDER == LITTLE_ENDIAN); - res = disksize(fd, &llsectors); + res = blkdev_get_sectors(fd, &llsectors); if (!ioctl(fd, HDIO_GETGEO, &geometry)) { heads = geometry.heads; |