diff options
author | Karel Zak | 2010-08-24 11:43:21 +0200 |
---|---|---|
committer | Karel Zak | 2010-08-24 11:47:55 +0200 |
commit | 1519ab5ffca4ec4be5ae36556e2e608c188d8f60 (patch) | |
tree | edf6d4c64479a02837621f8d7baf199692283cce /include/blkdev.h | |
parent | fdisk: fix alignment check for non-512-byte logical sectors (diff) | |
download | kernel-qcow2-util-linux-1519ab5ffca4ec4be5ae36556e2e608c188d8f60.tar.gz kernel-qcow2-util-linux-1519ab5ffca4ec4be5ae36556e2e608c188d8f60.tar.xz kernel-qcow2-util-linux-1519ab5ffca4ec4be5ae36556e2e608c188d8f60.zip |
blockdev: add BLKDISCARDZEROES
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r-- | include/blkdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h index 0eea01cd8..2179c6ed8 100644 --- a/include/blkdev.h +++ b/include/blkdev.h @@ -33,6 +33,7 @@ #endif /* BLKROSET && __linux__ */ + #ifdef APPLE_DARWIN #define BLKGETSIZE DKIOCGETBLOCKCOUNT32 #endif @@ -45,6 +46,11 @@ #define BLKPBSZGET _IO(0x12,123) #endif +/* discard zeroes support, introduced in 2.6.33 (commait 98262f27) */ +#ifndef BLKDISCARDZEROES +#define BLKDISCARDZEROES _IO(0x12,124) +#endif + #ifndef FIFREEZE #define FIFREEZE _IOWR('X', 119, int) /* Freeze */ #define FITHAW _IOWR('X', 120, int) /* Thaw */ |