summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorKarel Zak2009-10-15 01:22:42 +0200
committerKarel Zak2009-10-15 01:22:42 +0200
commitd965d63f6414b27c04acee860cc5357887b2e788 (patch)
tree6f3bc532062fb1abcb5cbb2fa36edf2fb628dfce /include/blkdev.h
parentblockdev: add support for uint and ushort ioctls (diff)
downloadkernel-qcow2-util-linux-d965d63f6414b27c04acee860cc5357887b2e788.tar.gz
kernel-qcow2-util-linux-d965d63f6414b27c04acee860cc5357887b2e788.tar.xz
kernel-qcow2-util-linux-d965d63f6414b27c04acee860cc5357887b2e788.zip
blockdev: add topology ioctls support
new options: --getpbsz get physical block (sector) size --getiomin get minimum I/O size --getioopt get optimal I/O size --getalignoff get alignment offset --getmaxsect get max sectors per request Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 9d9453bc7..57ef40d49 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -34,6 +34,12 @@
#define BLKBSZSET _IOW(0x12,113,size_t)
#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */
+/* block device topology ioctls, introduced in 2.6.32 */
+#define BLKIOMIN _IO(0x1,120)
+#define BLKIOOPT _IO(0x12,121)
+#define BLKALIGNOFF _IO(0x12,122)
+#define BLKPBSZGET _IO(0x12,123)
+
#endif /* BLKROSET */
#ifndef HDIO_GETGEO