mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Bring dmsetup man page up-to-date.
This commit is contained in:
parent
472ac5bdd5
commit
823a36448f
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.04 -
|
Version 1.02.04 -
|
||||||
============================
|
============================
|
||||||
|
Bring dmsetup man page up-to-date.
|
||||||
Use name-based device refs if kernel doesn't support device number refs.
|
Use name-based device refs if kernel doesn't support device number refs.
|
||||||
Fix memory leak (struct dm_ioctl) when struct dm_task is reused.
|
Fix memory leak (struct dm_ioctl) when struct dm_task is reused.
|
||||||
If _create_and_load_v4 fails part way through, revert the creation.
|
If _create_and_load_v4 fails part way through, revert the creation.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.TH DMSETUP 8 "Sep 17 2003" "Linux" "MAINTENTANCE COMMANDS"
|
.TH DMSETUP 8 "Apr 06 2006" "Linux" "MAINTENTANCE COMMANDS"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
dmsetup \- low level logical volume management
|
dmsetup \- low level logical volume management
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -12,7 +12,7 @@ dmsetup \- low level logical volume management
|
|||||||
.B dmsetup remove_all
|
.B dmsetup remove_all
|
||||||
.br
|
.br
|
||||||
.B dmsetup suspend
|
.B dmsetup suspend
|
||||||
.I device_name
|
.I [--nolockfs] device_name
|
||||||
.br
|
.br
|
||||||
.B dmsetup resume
|
.B dmsetup resume
|
||||||
.I device_name
|
.I device_name
|
||||||
@ -29,7 +29,7 @@ dmsetup \- low level logical volume management
|
|||||||
.B dmsetup rename
|
.B dmsetup rename
|
||||||
.I device_name new_name
|
.I device_name new_name
|
||||||
.br
|
.br
|
||||||
.B dmsetup ls [--target target_type] [--exec command]
|
.B dmsetup ls [--target target_type] [--exec command] [--tree [-o options]]
|
||||||
.br
|
.br
|
||||||
.B dmsetup info
|
.B dmsetup info
|
||||||
.I [device_name]
|
.I [device_name]
|
||||||
@ -147,10 +147,17 @@ Outputs some brief information about the device in the form:
|
|||||||
.IP \fBls
|
.IP \fBls
|
||||||
.I [--target target_type]
|
.I [--target target_type]
|
||||||
.I [--exec command]
|
.I [--exec command]
|
||||||
|
.I [--tree [-o options]]
|
||||||
.br
|
.br
|
||||||
List device names. Optionally only list devices that have at least
|
List device names. Optionally only list devices that have at least
|
||||||
one target of the specified type. Optionally execute a command for
|
one target of the specified type. Optionally execute a command for
|
||||||
each device. The device name is appended to the supplied command.
|
each device. The device name is appended to the supplied command.
|
||||||
|
--tree displays dependencies between devices as a tree.
|
||||||
|
It accepts a comma-separate list of options.
|
||||||
|
Some specify the information displayed against each node:
|
||||||
|
device/nodevice; active, open, rw, uuid.
|
||||||
|
Others specify how the tree is displayed:
|
||||||
|
ascii, utf, vt100; compact, inverted, notrunc.
|
||||||
.IP \fBload|reload
|
.IP \fBload|reload
|
||||||
.I device_name [table_file]
|
.I device_name [table_file]
|
||||||
.br
|
.br
|
||||||
@ -183,11 +190,14 @@ Outputs status information for each of the device's targets.
|
|||||||
With --target, only information relating to the specified target type
|
With --target, only information relating to the specified target type
|
||||||
is displayed.
|
is displayed.
|
||||||
.IP \fBsuspend
|
.IP \fBsuspend
|
||||||
|
.I [--nolockfs]
|
||||||
.I device_name
|
.I device_name
|
||||||
.br
|
.br
|
||||||
Suspends a device. Any I/O that has already been mapped by the device
|
Suspends a device. Any I/O that has already been mapped by the device
|
||||||
but has not yet completed will be flushed. Any further I/O to that
|
but has not yet completed will be flushed. Any further I/O to that
|
||||||
device will be postponed for as long as the device is suspended.
|
device will be postponed for as long as the device is suspended.
|
||||||
|
If there's a filesystem on the device which supports the operation,
|
||||||
|
an attempt will be made to sync it first unless --nolockfs is specified.
|
||||||
.IP \fBtable
|
.IP \fBtable
|
||||||
.I [--target target_type]
|
.I [--target target_type]
|
||||||
.I [device_name]
|
.I [device_name]
|
||||||
|
@ -1350,7 +1350,7 @@ static struct command _commands[] = {
|
|||||||
{"reload", "<device> [<table_file>]", 0, 2, _load},
|
{"reload", "<device> [<table_file>]", 0, 2, _load},
|
||||||
{"rename", "<device> <new_name>", 1, 2, _rename},
|
{"rename", "<device> <new_name>", 1, 2, _rename},
|
||||||
{"message", "<device> <sector> <message>", 2, -1, _message},
|
{"message", "<device> <sector> <message>", 2, -1, _message},
|
||||||
{"ls", "[--target <target_type>] [--exec <command>] [--tree]", 0, 0, _ls},
|
{"ls", "[--target <target_type>] [--exec <command>] [--tree [-o options]]", 0, 0, _ls},
|
||||||
{"info", "[<device>]", 0, 1, _info},
|
{"info", "[<device>]", 0, 1, _info},
|
||||||
{"deps", "[<device>]", 0, 1, _deps},
|
{"deps", "[<device>]", 0, 1, _deps},
|
||||||
{"status", "[<device>] [--target <target_type>]", 0, 1, _status},
|
{"status", "[<device>] [--target <target_type>]", 0, 1, _status},
|
||||||
@ -1374,7 +1374,9 @@ static void _usage(FILE *out)
|
|||||||
fprintf(out, "\t%s %s\n", _commands[i].name, _commands[i].help);
|
fprintf(out, "\t%s %s\n", _commands[i].name, _commands[i].help);
|
||||||
fprintf(out, "\n<device> may be device name or -u <uuid> or "
|
fprintf(out, "\n<device> may be device name or -u <uuid> or "
|
||||||
"-j <major> -m <minor>\n");
|
"-j <major> -m <minor>\n");
|
||||||
fprintf(out, "Table_file contents may be supplied on stdin.\n\n");
|
fprintf(out, "Table_file contents may be supplied on stdin.\n");
|
||||||
|
fprintf(out, "Tree options are: ascii, utf, vt100; compact, inverted, notrunc;\n"
|
||||||
|
" [no]device, active, open, rw and uuid.\n\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user