summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorDavidlohr Bueso2012-04-04 19:01:24 +0200
committerKarel Zak2012-04-10 12:21:16 +0200
commit64128b705c2137706bb7ed3a15d3803509e0a63e (patch)
tree388b8384852de4bb4f90ddfad39f65fabfd6e171 /include/blkdev.h
parentfsck: don't free fstab table on parse failure (diff)
downloadkernel-qcow2-util-linux-64128b705c2137706bb7ed3a15d3803509e0a63e.tar.gz
kernel-qcow2-util-linux-64128b705c2137706bb7ed3a15d3803509e0a63e.tar.xz
kernel-qcow2-util-linux-64128b705c2137706bb7ed3a15d3803509e0a63e.zip
fdisk: move kernel geometry into blkdev
This is a more generic place for this ioctl. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 6b1887976..56dbce75c 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -110,4 +110,7 @@ int blkdev_get_physector_size(int fd, int *sector_size);
/* is the device cdrom capable? */
int blkdev_is_cdrom(int fd);
+/* get device's geometry - legacy */
+int blkdev_get_geometry(int fd, unsigned int *h, unsigned int *s);
+
#endif /* BLKDEV_H */