aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJack O'Sullivan <jackos1998@gmail.com>2019-05-28 15:28:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-05-30 16:22:52 +0200
commit726cbb1be8620496cdf05d23bd98bdeb0983b4f0 (patch)
treec85dcdbbe86fe8e3920ec1f0869736c6594fd1ee /include
parentbcb1fc3e6ca6fe902610f507eaf9b0b58a5c583a (diff)
downloadbusybox-726cbb1be8620496cdf05d23bd98bdeb0983b4f0.tar.gz
losetup: Add partition scanning option
Add -P option from util-linux losetup to scan for partitions. function old new delta losetup_main 449 482 +33 packed_usage 33264 33292 +28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 61/0) Total: 61 bytes Signed-off-by: Jack O'Sullivan <jackos1998@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 33766e989..3a870bf80 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1471,6 +1471,7 @@ extern int set_loop(char **devname, const char *file, unsigned long long offset,
/* These constants match linux/loop.h (without BB_ prefix): */
#define BB_LO_FLAGS_READ_ONLY 1
#define BB_LO_FLAGS_AUTOCLEAR 4
+#define BB_LO_FLAGS_PARTSCAN 8
/* Returns malloced str */
char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC;