appjail-volume
—
Volume management for jails
appjail volume |
add [-g
gid] [-m
mountpoint] [-o
uid] [-p
mode] [-t
type] jail
volume |
appjail volume |
get [-eHIpt ]
-v volume
jail [keyword ...] |
appjail volume |
list [-eHIpt ]
[-v volume]
jail [keyword ...] |
appjail volume |
remove jail
volume |
The
appjail
volume utility implements together with
appjail-fstab(1)
the pseudo-filesystem
VolumeFS.
See
appjail-fstab(1)
for more details.
The options are as follows:
add
[-g
gid]
[-m
mountpoint]
[-o
uid]
[-p
mode]
[-t
type]
jail volume
- Add a new volume to jail. If
volume already exists, an error occurs.
-g
gid
- volume's group ID.
-m
mountpoint
- Path within the jail to mount the volume. The default is
VOLUMESDIR/volume.
-o
uid
- volume's user ID.
-p
mode
- volume's file mode.
-t
type
- File system type. The default is
<pseudofs>.
get
[-eHIpt
] -v
volume jail
[keyword ...]
- Get information about jail's
volume, that is, the keyword
that represent the information to be obtained. Multiple keywords can be
specified, which are displayed as a table-like interface in the order in
which they are specified. If no
keyword is specified, the defaults
are name, mountpoint,
type, uid, gid
and perm.
See KEYWORDS for a list of
available keywords.
-e
- Not required when using
-p
. The
\t character is used to delimit columns, so as not
to show strange values, this option shows
<TAB>
instead of \t in the case that a value contains the
latter.
-H
- Shows the name of the columns.
-I
- Include empty values. By default, a minus sign is displayed when a
value is empty.
-p
- Columnate the list.
-t
- Tabulate columns and values.
list
[-eHIpt
] [-v
volume] jail
[keyword ...]
- Similar
to
get
but shows
each keyword for each volume
in a nice table.
-e
,
-H
, -I
,
-p
, -t
- All of
these options perform the opposite task of the options described
in
get
.
-v
volume
- Only show
information for volume.
remove
jail volume
- Remove jail's volume.
- name
- Volume name.
- mountpoint
- Path within the jail to mount the volume.
- type
- File system type.
- uid
- volume's user ID.
- gid
- volume's group ID.
- perm
- volume's file mode.
The appjail volume
utility exits 0
on success, and >0 if an error occurs.