diff options
author | Denys Vlasenko | 2017-07-15 13:53:41 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-15 13:53:41 +0200 |
commit | 8ea061eac3207e5901bbe6032530e64d053df837 (patch) | |
tree | 6de2feb8c581ec04c4fc1cb961712a2066e7db20 /util-linux | |
parent | 9887f93eefbb384e3ebdbf767847934d2fd6c0ff (diff) | |
download | busybox-8ea061eac3207e5901bbe6032530e64d053df837.zip busybox-8ea061eac3207e5901bbe6032530e64d053df837.tar.gz |
blkdiscard: provide our own BLK[SEC]DISCARD if necessary
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/blkdiscard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util-linux/blkdiscard.c b/util-linux/blkdiscard.c index af0bc94..85039c5 100644 --- a/util-linux/blkdiscard.c +++ b/util-linux/blkdiscard.c @@ -28,6 +28,13 @@ #include "libbb.h" #include <linux/fs.h> +#ifndef BLKDISCARD +#define BLKDISCARD 0x1277 +#endif +#ifndef BLKSECDISCARD +#define BLKSECDISCARD 0x127d +#endif + int blkdiscard_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int blkdiscard_main(int argc UNUSED_PARAM, char **argv) { |