Print this page
5857 add -o option to lofiadm

*** 1,6 **** --- 1,7 ---- '\" te + .\" Copyright (c) 2016 Andrey Sokolov .\" Copyright 2013 Nexenta Systems, Inc. All rights reserved. .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved .\" 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. .\" 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 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
*** 13,23 **** \fBlofiadm\fR [\fB-r\fR] \fB-a\fR \fIfile\fR [\fIdevice\fR] .fi .LP .nf ! \fBlofiadm\fR [\fB-r\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR] .fi .LP .nf \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] --- 14,24 ---- \fBlofiadm\fR [\fB-r\fR] \fB-a\fR \fIfile\fR [\fIdevice\fR] .fi .LP .nf ! \fBlofiadm\fR [\fB-r\fR] [\fB-o\fR] \fB-c\fR \fIcrypto_algorithm\fR \fB-a\fR \fIfile\fR [\fIdevice\fR] .fi .LP .nf \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]
*** 58,68 **** .nf \fBlofiadm\fR [ \fIfile\fR | \fIdevice\fR] .fi .SH DESCRIPTION - .sp .LP \fBlofiadm\fR administers \fBlofi\fR, the loopback file driver. \fBlofi\fR allows a file to be associated with a block device. That file can then be accessed through the block device. This is useful when the file contains an image of some filesystem (such as a floppy or \fBCD-ROM\fR image), because the --- 59,68 ----
*** 80,90 **** In the global zone, \fBlofiadm\fR can be used on both the global zone devices and all devices owned by other non-global zones on the system. .sp .SH OPTIONS - .sp .LP The following options are supported: .sp .ne 2 .na --- 80,89 ----
*** 135,144 **** --- 134,153 ---- .RE .sp .ne 2 .na + \fB\fB-o\fR + .ad + .sp .6 + .RS 4n + If the \fB-o\fR option is specified lofiadm will prompt for a passphrase once. + .RE + + .sp + .ne 2 + .na \fB\fB-r\fR .ad .sp .6 .RS 4n If the \fB-r\fR option is specified before the \fB-a\fR option, the
*** 219,229 **** .RS 4n Generate an ephemeral symmetric encryption key. .RE .SH OPERANDS - .sp .LP The following operands are supported: .sp .ne 2 .na --- 228,237 ----
*** 718,734 **** .fi .in -2 .sp .SH ENVIRONMENT VARIABLES - .sp .LP See \fBenviron\fR(5) for descriptions of the following environment variables that affect the execution of \fBlofiadm\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR and \fBNLSPATH\fR. .SH EXIT STATUS - .sp .LP The following exit values are returned: .sp .ne 2 .na --- 726,740 ----
*** 748,763 **** .RS 4n An error occurred. .RE .SH SEE ALSO - .sp .LP \fBfsck\fR(1M), \fBmount\fR(1M), \fBmount_ufs\fR(1M), \fBnewfs\fR(1M), \fBattributes\fR(5), \fBlofi\fR(7D), \fBlofs\fR(7FS) .SH NOTES - .sp .LP Just as you would not directly access a disk device that has mounted file systems, you should not access a file associated with a block device except through the \fBlofi\fR file driver. It might also be appropriate to ensure that the file has appropriate permissions to prevent such access. --- 754,767 ----