From 7ae209c0190c0c6e6b1c95ee9005edf4729e1ce0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 26 Sep 2007 17:54:18 +0000 Subject: losetup: support -f (Loic Grenie ) function old new delta losetup_main 238 278 +40 packed_usage 23021 23027 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 46/0) Total: 46 bytes --- include/usage.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 09c8fa7d1..b028f5a5c 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1868,19 +1868,21 @@ " -f Output data as the log grows" #define losetup_trivial_usage \ - "[-o OFFSET] [-d] LOOPDEVICE [FILE]]" + "[-o OFS] LOOPDEV FILE - associate loop devices\n" \ + " losetup -d LOOPDEV - disassociate\n" \ + " losetup [-f] - show" #define losetup_full_usage \ - "(Dis)associate LOOPDEVICE with FILE, or display current associations" \ - "\n\nOptions:\n" \ - " -d Disassociate LOOPDEVICE\n" \ - " -o OFFSET Start OFFSET bytes into FILE" + "Options:\n" \ + " -o OFS Start OFS bytes into FILE\n" \ + " -f Show first free loop device" #define losetup_notes_usage \ "No arguments will display all current associations.\n" \ "One argument (losetup /dev/loop1) will display the current association\n" \ "(if any), or disassociate it (with -d). The display shows the offset\n" \ "and filename of the file the loop device is currently bound to.\n\n" \ "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \ - "with an optional offset (-o 12345). Encryption is not yet supported.\n\n" + "with an optional offset (-o 12345). Encryption is not yet supported.\n" \ + "losetup -f will show the first loop free loop device\n\n" #define ls_trivial_usage \ "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \ -- cgit v1.2.3