projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9887f93
)
blkdiscard: provide our own BLK[SEC]DISCARD if necessary
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 15 Jul 2017 11:53:41 +0000
(13:53 +0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/util-linux/blkdiscard.c
b/util-linux/blkdiscard.c
index af0bc946d2787ba9072fb4d045e9844a24c55167..85039c5d084cd84b1a0dad4b0a3df6b5e576b17c 100644
(file)
--- 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)
{