blkdiscard: provide our own BLK[SEC]DISCARD if necessary
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 15 Jul 2017 11:53:41 +0000 (13:53 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 15 Jul 2017 11:53:41 +0000 (13:53 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/blkdiscard.c

index af0bc946d2787ba9072fb4d045e9844a24c55167..85039c5d084cd84b1a0dad4b0a3df6b5e576b17c 100644 (file)
 #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)
 {