From e49622ef17e9bb5d75567fa5f21b80cad2f00168 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 9 Jan 2012 12:28:47 +0000 Subject: [PATCH] Improve readahead in dmsetup man page --- WHATS_NEW_DM | 1 + man/dmsetup.8.in | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 5334184a4..dfc7416a6 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.68 - ================================== + Improve dmsetup man page about readahead parameter. Use sysfs to set/get of read-ahead setting if possible. Fix lvm2-monitor init script to use normalized output when using vgs. Add test for max length (DM_MAX_TYPE_NAME) of target type name. diff --git a/man/dmsetup.8.in b/man/dmsetup.8.in index 351584844..f3e230c21 100644 --- a/man/dmsetup.8.in +++ b/man/dmsetup.8.in @@ -15,6 +15,8 @@ dmsetup \- low level logical volume management .RS .IR table_file ] .RB [{ \-\-addnodeoncreate | \-\-addnodeonresume }] +.RB [ \-\-readahead +.RI [ \+ ]< sectors >| auto | none ] .RE .br .B dmsetup deps @@ -85,6 +87,10 @@ dmsetup \- low level logical volume management .B dmsetup resume .I device_name .RB [{ \-\-addnodeoncreate | \-\-addnodeonresume }] +.RS +.RB [ \-\-readahead +.RI [ \+ ]< sectors >| auto | none ] +.RE .br .B dmsetup setgeometry .I device_name cyl head sect start @@ -202,11 +208,11 @@ Specify which fields to display. .TP .IR \fB\-\-readahead \ [ \+ ]< sectors >| auto | none Specify read ahead size in units of sectors. -The default value is "auto" which allows the kernel to choose -a suitable value automatically. The + prefix lets you +The default value is \fIauto\fP which allows the kernel to choose +a suitable value automatically. The \fI\+\fP prefix lets you specify a minimum value which will not be used if it is smaller than the value chosen by the kernel. -"None" is equivalent to specifying zero. +The value \fInone\fP is equivalent to specifying zero. .TP .BR \-r | \-\-readonly Set the table being loaded read-only. @@ -248,6 +254,8 @@ Destroys the table in the inactive table slot for device_name. .RB [ \-\-notable | \-\-table .RI < \fItable >| table_file ] .RB [{ \-\-addnodeoncreate | \-\-addnodeonresume }] +.RB [ \-\-readahead +.RI [ + ]< sectors >| auto | none ] .br Creates a device with the given name. If table_file or is supplied, the table is loaded and made live. @@ -402,6 +410,8 @@ After a uuid has been set it cannot be changed. .B resume .I device_name .RB [{ \-\-addnodeoncreate | \-\-addnodeonresume }] +.RB [ \-\-readahead +.RI [ + ]< sectors >| auto | none ] .br Un-suspends a device. If an inactive table has been loaded, it becomes live. -- 2.43.5