From 726cbb1be8620496cdf05d23bd98bdeb0983b4f0 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Tue, 28 May 2019 15:28:27 +0100 Subject: 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 Signed-off-by: Denys Vlasenko --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; -- cgit v1.2.3