From 13e709c53f700a18a660feebdf72c613a233bf48 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 12 Sep 2011 02:13:47 +0200 Subject: losetup: implement -r option. Closes 4033. function old new delta packed_usage 28595 28633 +38 losetup_main 285 290 +5 singlemount 906 908 +2 set_loop 674 672 -2 Signed-off-by: Denys Vlasenko --- include/libbb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 21cbe1cac..feae85259 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1164,7 +1164,7 @@ extern int del_loop(const char *device) FAST_FUNC; /* If *devname is not NULL, use that name, otherwise try to find free one, * malloc and return it in *devname. * return value: 1: read-only loopdev was setup, 0: rw, < 0: error */ -extern int set_loop(char **devname, const char *file, unsigned long long offset) FAST_FUNC; +extern int set_loop(char **devname, const char *file, unsigned long long offset, int ro) FAST_FUNC; /* Like bb_ask below, but asks on stdin with no timeout. */ char *bb_ask_stdin(const char * prompt) FAST_FUNC; -- cgit v1.2.3