From 40e7d25aca1abbe080e00e2bed64b444a5ec7858 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 1 Feb 2010 23:48:27 +0100 Subject: mkXXXX: unify [KBYTES] parameter handling (added it to mkswap) Signed-off-by: Denys Vlasenko --- include/libbb.h | 5 +++++ include/usage.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index a86d64400..09852d036 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -412,6 +412,11 @@ int rename_or_warn(const char *oldpath, const char *newpath) FAST_FUNC; off_t xlseek(int fd, off_t offset, int whence) FAST_FUNC; off_t fdlength(int fd) FAST_FUNC; +uoff_t FAST_FUNC get_volume_size_in_bytes(int fd, + const char *override, + unsigned override_units, + int extend); + void xpipe(int filedes[2]) FAST_FUNC; /* In this form code with pipes is much more readable */ struct fd_pair { int rd; int wr; }; diff --git a/include/usage.h b/include/usage.h index 44cc83422..683d53fbd 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2844,7 +2844,7 @@ "$ mknod -m 644 /tmp/pipe p\n" #define mkswap_trivial_usage \ - "[OPTIONS] BLOCKDEV" /* [SIZE_IN_KB] */ + "[OPTIONS] BLOCKDEV [KBYTES]" #define mkswap_full_usage "\n\n" \ "Prepare BLOCKDEV to be used as swap partition\n" \ "\nOptions:" \ -- cgit v1.2.3