Print this page
5857 add -o option to lofiadm

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/lofiadm.1m
          +++ new/usr/src/man/man1m/lofiadm.1m
   1    1  '\" te
        2 +.\" Copyright (c) 2016 Andrey Sokolov
   2    3  .\" Copyright 2013 Nexenta Systems, Inc. All rights reserved.
   3    4  .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
   4    5  .\" 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.
   5    6  .\"  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
   6    7  .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7    8  .TH LOFIADM 1M "Aug 28, 2013"
   8    9  .SH NAME
   9   10  lofiadm \- administer files available as block devices through lofi
  10   11  .SH SYNOPSIS
  11   12  .LP
  12   13  .nf
  13   14  \fBlofiadm\fR [\fB-r\fR] \fB-a\fR \fIfile\fR [\fIdevice\fR]
  14   15  .fi
  15   16  
  16   17  .LP
  17   18  .nf
  18      -\fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
       19 +\fBlofiadm\fR [\fB-r\fR] [\fB-o\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
  19   20  .fi
  20   21  
  21   22  .LP
  22   23  .nf
  23   24  \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]
  24   25  .fi
  25   26  
  26   27  .LP
  27   28  .nf
  28   29  \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-T\fR \fItoken_key\fR \fB-a\fR \fIfile\fR [\fIdevice\fR]
↓ open down ↓ 24 lines elided ↑ open up ↑
  53   54  .nf
  54   55  \fBlofiadm\fR \fB-U\fR \fIfile\fR
  55   56  .fi
  56   57  
  57   58  .LP
  58   59  .nf
  59   60  \fBlofiadm\fR [ \fIfile\fR | \fIdevice\fR]
  60   61  .fi
  61   62  
  62   63  .SH DESCRIPTION
  63      -.sp
  64   64  .LP
  65   65  \fBlofiadm\fR administers \fBlofi\fR, the loopback file driver. \fBlofi\fR
  66   66  allows a file to be associated with a block device. That file can then be
  67   67  accessed through the block device. This is useful when the file contains an
  68   68  image of some filesystem (such as a floppy or \fBCD-ROM\fR image), because the
  69   69  block device can then be used with the normal system utilities for mounting,
  70   70  checking or repairing filesystems. See \fBfsck\fR(1M) and \fBmount\fR(1M).
  71   71  .sp
  72   72  .LP
  73   73  Use \fBlofiadm\fR to add a file as a loopback device, remove such an
↓ open down ↓ 1 lines elided ↑ open up ↑
  75   75  .sp
  76   76  .LP
  77   77  Encryption and compression options are mutually exclusive on the command line.
  78   78  Further, an encrypted file cannot be compressed later, nor can a compressed
  79   79  file be encrypted later.
  80   80  
  81   81  In the global zone, \fBlofiadm\fR can be used on both the global
  82   82  zone devices and all devices owned by other non-global zones on the system.
  83   83  .sp
  84   84  .SH OPTIONS
  85      -.sp
  86   85  .LP
  87   86  The following options are supported:
  88   87  .sp
  89   88  .ne 2
  90   89  .na
  91   90  \fB\fB-a\fR \fIfile\fR [\fIdevice\fR]\fR
  92   91  .ad
  93   92  .sp .6
  94   93  .RS 4n
  95   94  Add \fIfile\fR as a block device.
↓ open down ↓ 34 lines elided ↑ open up ↑
 130  129  .ad
 131  130  .sp .6
 132  131  .RS 4n
 133  132  Remove an association by \fIfile\fR or \fIdevice\fR name, if the associated
 134  133  block device is not busy, and deallocates the block device.
 135  134  .RE
 136  135  
 137  136  .sp
 138  137  .ne 2
 139  138  .na
      139 +\fB\fB-o\fR
      140 +.ad
      141 +.sp .6
      142 +.RS 4n
      143 +If the \fB-o\fR option is specified lofiadm will prompt for a passphrase once.
      144 +.RE
      145 +
      146 +.sp
      147 +.ne 2
      148 +.na
 140  149  \fB\fB-r\fR
 141  150  .ad
 142  151  .sp .6
 143  152  .RS 4n
 144  153  If the \fB-r\fR option is specified before the \fB-a\fR option, the
 145  154  \fIdevice\fR will be opened read-only.
 146  155  .RE
 147  156  
 148  157  .sp
 149  158  .ne 2
↓ open down ↓ 64 lines elided ↑ open up ↑
 214  223  .ne 2
 215  224  .na
 216  225  \fB\fB-e\fR\fR
 217  226  .ad
 218  227  .sp .6
 219  228  .RS 4n
 220  229  Generate an ephemeral symmetric encryption key.
 221  230  .RE
 222  231  
 223  232  .SH OPERANDS
 224      -.sp
 225  233  .LP
 226  234  The following operands are supported:
 227  235  .sp
 228  236  .ne 2
 229  237  .na
 230  238  \fB\fIcrypto_algorithm\fR\fR
 231  239  .ad
 232  240  .sp .6
 233  241  .RS 4n
 234  242  One of: \fBaes-128-cbc\fR, \fBaes-192-cbc\fR, \fBaes-256-cbc\fR,
↓ open down ↓ 478 lines elided ↑ open up ↑
 713  721  Block Device    File                     Options
 714  722  /dev/lofi/1     /export/home/secrets     -
 715  723  # \fBmount /dev/lofi/1 /mnt\fR
 716  724  mount: /dev/lofi/1 is not this fstype
 717  725  #
 718  726  .fi
 719  727  .in -2
 720  728  .sp
 721  729  
 722  730  .SH ENVIRONMENT VARIABLES
 723      -.sp
 724  731  .LP
 725  732  See \fBenviron\fR(5) for descriptions of the following environment variables
 726  733  that affect the execution of \fBlofiadm\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR
 727  734  and \fBNLSPATH\fR.
 728  735  .SH EXIT STATUS
 729      -.sp
 730  736  .LP
 731  737  The following exit values are returned:
 732  738  .sp
 733  739  .ne 2
 734  740  .na
 735  741  \fB\fB0\fR\fR
 736  742  .ad
 737  743  .sp .6
 738  744  .RS 4n
 739  745  Successful completion.
↓ open down ↓ 3 lines elided ↑ open up ↑
 743  749  .ne 2
 744  750  .na
 745  751  \fB\fB>0\fR\fR
 746  752  .ad
 747  753  .sp .6
 748  754  .RS 4n
 749  755  An error occurred.
 750  756  .RE
 751  757  
 752  758  .SH SEE ALSO
 753      -.sp
 754  759  .LP
 755  760  \fBfsck\fR(1M), \fBmount\fR(1M), \fBmount_ufs\fR(1M), \fBnewfs\fR(1M),
 756  761  \fBattributes\fR(5), \fBlofi\fR(7D), \fBlofs\fR(7FS)
 757  762  .SH NOTES
 758      -.sp
 759  763  .LP
 760  764  Just as you would not directly access a disk device that has mounted file
 761  765  systems, you should not access a file associated with a block device except
 762  766  through the \fBlofi\fR file driver. It might also be appropriate to ensure that
 763  767  the file has appropriate permissions to prevent such access.
 764  768  .sp
 765  769  .LP
 766  770  The abilities of \fBlofiadm\fR, and who can use them, are controlled by the
 767  771  permissions of \fB/dev/lofictl\fR. Read-access allows query operations, such as
 768  772  listing all the associations. Write-access is required to do any state-changing
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX