diff options
author | Jack O'Sullivan <jackos1998@gmail.com> | 2019-05-28 15:28:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-30 16:22:52 +0200 |
commit | 726cbb1be8620496cdf05d23bd98bdeb0983b4f0 (patch) | |
tree | c85dcdbbe86fe8e3920ec1f0869736c6594fd1ee /include | |
parent | bcb1fc3e6ca6fe902610f507eaf9b0b58a5c583a (diff) | |
download | busybox-w32-726cbb1be8620496cdf05d23bd98bdeb0983b4f0.tar.gz busybox-w32-726cbb1be8620496cdf05d23bd98bdeb0983b4f0.tar.bz2 busybox-w32-726cbb1be8620496cdf05d23bd98bdeb0983b4f0.zip |
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.h | 1 |
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, | |||
1471 | /* These constants match linux/loop.h (without BB_ prefix): */ | 1471 | /* These constants match linux/loop.h (without BB_ prefix): */ |
1472 | #define BB_LO_FLAGS_READ_ONLY 1 | 1472 | #define BB_LO_FLAGS_READ_ONLY 1 |
1473 | #define BB_LO_FLAGS_AUTOCLEAR 4 | 1473 | #define BB_LO_FLAGS_AUTOCLEAR 4 |
1474 | #define BB_LO_FLAGS_PARTSCAN 8 | ||
1474 | 1475 | ||
1475 | /* Returns malloced str */ | 1476 | /* Returns malloced str */ |
1476 | char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC; | 1477 | char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC; |