Print this page
*** NO COMMENTS ***
   1 '\" te
   2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
   4 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
   5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH LOFIADM 1M "Aug 31, 2009"
   7 .SH NAME
   8 lofiadm \- administer files available as block devices through lofi
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fB/usr/sbin/lofiadm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  13 .fi
  14 
  15 .LP
  16 .nf
  17 \fB/usr/sbin/lofiadm\fR \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  18 .fi
  19 
  20 .LP
  21 .nf
  22 \fB/usr/sbin/lofiadm\fR \fB-c\fR \fIcrypto_algorithm\fR \fB-k\fR \fIraw_key_file\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  23 .fi
  24 
  25 .LP
  26 .nf
  27 \fB/usr/sbin/lofiadm\fR \fB-c\fR \fIcrypto_algorithm\fR \fB-T\fR \fItoken_key\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  28 .fi
  29 
  30 .LP
  31 .nf
  32 \fB/usr/sbin/lofiadm\fR \fB-c\fR \fIcrypto_algorithm\fR \fB-T\fR \fItoken_key\fR
  33      \fB-k\fR \fIwrapped_key_file\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  34 .fi
  35 
  36 .LP
  37 .nf
  38 \fB/usr/sbin/lofiadm\fR \fB-c\fR \fIcrypto_algorithm\fR \fB-e\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  39 .fi
  40 
  41 .LP
  42 .nf
  43 \fB/usr/sbin/lofiadm\fR \fB-C\fR \fIalgorithm\fR [\fB-s\fR \fIsegment_size\fR] \fIfile\fR
  44 .fi
  45 
  46 .LP
  47 .nf
  48 \fB/usr/sbin/lofiadm\fR \fB-d\fR \fIfile\fR | \fIdevice\fR
  49 .fi
  50 
  51 .LP
  52 .nf
  53 \fB/usr/sbin/lofiadm\fR \fB-U\fR \fIfile\fR
  54 .fi
  55 
  56 .LP
  57 .nf
  58 \fB/usr/sbin/lofiadm\fR [ \fIfile\fR | \fIdevice\fR]
  59 .fi
  60 
  61 .SH DESCRIPTION
  62 .sp
  63 .LP
  64 \fBlofiadm\fR administers \fBlofi\fR, the loopback file driver. \fBlofi\fR
  65 allows a file to be associated with a block device. That file can then be
  66 accessed through the block device. This is useful when the file contains an
  67 image of some filesystem (such as a floppy or \fBCD-ROM\fR image), because the
  68 block device can then be used with the normal system utilities for mounting,
  69 checking or repairing filesystems. See \fBfsck\fR(1M) and \fBmount\fR(1M).
  70 .sp
  71 .LP
  72 Use \fBlofiadm\fR to add a file as a loopback device, remove such an
  73 association, or print information about the current associations.
  74 .sp
  75 .LP
  76 Encryption and compression options are mutually exclusive on the command line.
  77 Further, an encrypted file cannot be compressed later, nor can a compressed
  78 file be encrypted later.


 115 ratio). Currently, \fBgzip\fR, without a number, is equivalent to \fBgzip-6\fR
 116 (which is also the default for the \fBgzip\fR command).
 117 .sp
 118 \fIlzma\fR stands for the LZMA (Lempel-Ziv-Markov) compression algorithm.
 119 .sp
 120 Note that you cannot write to a compressed file, nor can you mount a compressed
 121 file read/write.
 122 .RE
 123 
 124 .sp
 125 .ne 2
 126 .na
 127 \fB\fB-d\fR \fIfile\fR | \fIdevice\fR\fR
 128 .ad
 129 .sp .6
 130 .RS 4n
 131 Remove an association by \fIfile\fR or \fIdevice\fR name, if the associated
 132 block device is not busy, and deallocates the block device.
 133 .RE
 134 











 135 .sp
 136 .ne 2
 137 .na
 138 \fB\fB-s\fR \fIsegment_size\fR\fR
 139 .ad
 140 .sp .6
 141 .RS 4n
 142 The segment size to use to divide the file being compressed. \fIsegment_size\fR
 143 can be an integer multiple of 512.
 144 .RE
 145 
 146 .sp
 147 .ne 2
 148 .na
 149 \fB\fB-U\fR \fIfile\fR\fR
 150 .ad
 151 .sp .6
 152 .RS 4n
 153 Uncompress a compressed file.
 154 .RE


   1 '\" te
   2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
   4 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
   5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH LOFIADM 1M "Aug 28, 2013"
   7 .SH NAME
   8 lofiadm \- administer files available as block devices through lofi
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBlofiadm\fR [\fB-r\fR] \fB-a\fR \fIfile\fR [\fIdevice\fR]
  13 .fi
  14 
  15 .LP
  16 .nf
  17 \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  18 .fi
  19 
  20 .LP
  21 .nf
  22 \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-k\fR \fIraw_key_file\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  23 .fi
  24 
  25 .LP
  26 .nf
  27 \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-T\fR \fItoken_key\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  28 .fi
  29 
  30 .LP
  31 .nf
  32 \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-T\fR \fItoken_key\fR
  33      \fB-k\fR \fIwrapped_key_file\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  34 .fi
  35 
  36 .LP
  37 .nf
  38 \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-e\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  39 .fi
  40 
  41 .LP
  42 .nf
  43 \fBlofiadm\fR \fB-C\fR \fIalgorithm\fR [\fB-s\fR \fIsegment_size\fR] \fIfile\fR
  44 .fi
  45 
  46 .LP
  47 .nf
  48 \fBlofiadm\fR \fB-d\fR \fIfile\fR | \fIdevice\fR
  49 .fi
  50 
  51 .LP
  52 .nf
  53 \fBlofiadm\fR \fB-U\fR \fIfile\fR
  54 .fi
  55 
  56 .LP
  57 .nf
  58 \fBlofiadm\fR [ \fIfile\fR | \fIdevice\fR]
  59 .fi
  60 
  61 .SH DESCRIPTION
  62 .sp
  63 .LP
  64 \fBlofiadm\fR administers \fBlofi\fR, the loopback file driver. \fBlofi\fR
  65 allows a file to be associated with a block device. That file can then be
  66 accessed through the block device. This is useful when the file contains an
  67 image of some filesystem (such as a floppy or \fBCD-ROM\fR image), because the
  68 block device can then be used with the normal system utilities for mounting,
  69 checking or repairing filesystems. See \fBfsck\fR(1M) and \fBmount\fR(1M).
  70 .sp
  71 .LP
  72 Use \fBlofiadm\fR to add a file as a loopback device, remove such an
  73 association, or print information about the current associations.
  74 .sp
  75 .LP
  76 Encryption and compression options are mutually exclusive on the command line.
  77 Further, an encrypted file cannot be compressed later, nor can a compressed
  78 file be encrypted later.


 115 ratio). Currently, \fBgzip\fR, without a number, is equivalent to \fBgzip-6\fR
 116 (which is also the default for the \fBgzip\fR command).
 117 .sp
 118 \fIlzma\fR stands for the LZMA (Lempel-Ziv-Markov) compression algorithm.
 119 .sp
 120 Note that you cannot write to a compressed file, nor can you mount a compressed
 121 file read/write.
 122 .RE
 123 
 124 .sp
 125 .ne 2
 126 .na
 127 \fB\fB-d\fR \fIfile\fR | \fIdevice\fR\fR
 128 .ad
 129 .sp .6
 130 .RS 4n
 131 Remove an association by \fIfile\fR or \fIdevice\fR name, if the associated
 132 block device is not busy, and deallocates the block device.
 133 .RE
 134 
 135 .sp
 136 .ne 2
 137 .na
 138 \fB\fB-r\fR
 139 .ad
 140 .sp .6
 141 .RS 4n
 142 If the \fB-r\fR option is specified before the \fB-a\fR option, the
 143 \fIdevice\fR will be opened read-only.
 144 .RE
 145 
 146 .sp
 147 .ne 2
 148 .na
 149 \fB\fB-s\fR \fIsegment_size\fR\fR
 150 .ad
 151 .sp .6
 152 .RS 4n
 153 The segment size to use to divide the file being compressed. \fIsegment_size\fR
 154 can be an integer multiple of 512.
 155 .RE
 156 
 157 .sp
 158 .ne 2
 159 .na
 160 \fB\fB-U\fR \fIfile\fR\fR
 161 .ad
 162 .sp .6
 163 .RS 4n
 164 Uncompress a compressed file.
 165 .RE