From d162fcb550a77875c8f58fda0e0a0bd91f211c99 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:26:24 +0100 Subject: Imported from util-linux-2.12j tarball. --- mount/losetup.8 | 52 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 16 deletions(-) (limited to 'mount/losetup.8') diff --git a/mount/losetup.8 b/mount/losetup.8 index 9a42d70a0..06022ef4e 100644 --- a/mount/losetup.8 +++ b/mount/losetup.8 @@ -3,24 +3,40 @@ losetup \- set up and control loop devices .SH SYNOPSIS .ad l +Get info: +.sp +.in +5 .B losetup -[ -.RB [ \-e | \-E ] -.I encryption -] [ -.B \-o -.I offset -] [ -.B \-p -.I pfd -] -.I loop_device file -.br -.B losetup -[ -.B \-d -] .I loop_device +.sp +.in -5 +Delete loop: +.sp +.in +5 +.B "losetup \-d" +.I loop_device +.sp +.in -5 +Print name of first unused loop device: +.sp +.in +5 +.B "losetup \-f" +.sp +.in -5 +Setup loop device: +.sp +.in +5 +.B losetup +.RB [{\-e | \-E} +.IR encryption ] +.RB [ \-o +.IR offset ] +.RB [ \-p +.IR pfd ] +.in +8 +.RB { \-f | \fIloop_device\fP } +.I file +.in -13 .ad b .SH DESCRIPTION .B losetup @@ -56,6 +72,10 @@ Detach the file or device associated with the specified loop device. Enable data encryption with specified number. .IP "\fB\-e \fIencryption_name\fP" Enable data encryption with specified name. +.IP "\fB\-f\fP" +Find the first unused loop device. If a +.I file +argument is present, use this device. Otherwise, print its name. .IP "\fB\-o \fIoffset\fP" The data start is moved \fIoffset\fP bytes into the specified file or device. -- cgit v1.2.3-55-g7522