Skip to contentSkip to conversation

master - dmsetup: Process -S to filter input device lists.

PATCH Alasdair Kergon 1 participant 1 message Sep 14, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d73eddcdc02420793c2287b6aa184dc8eb2dcef4
Commit:        d73eddcdc02420793c2287b6aa184dc8eb2dcef4
Parent:        8e8755319c8a8848b8bcd830a6341eccf750f798
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Thu Sep 14 23:41:17 2017 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Thu Sep 14 23:41:17 2017 +0100

dmsetup: Process -S to filter input device lists.

The following commands now pass the device list through a --select|-S filter before processing:

suspend resume clear wipe_table remove deps status table

---
 WHATS_NEW_DM       |    1 +
 man/dmsetup.8_main |   16 ++++++++--------
 tools/dmsetup.c    |   48 ++++++++++++++++++++++++++++++++++++++----------
 3 files changed, 47 insertions(+), 18 deletions(-)
WHATS_NEW_DM +1 -0
index a100689..5f71327 100644
@@ -1,5 +1,6 @@
 Version 1.02.144 - 
 ======================================
+  Take -S with dmsetup suspend/resume/clear/wipe_table/remove/deps/status/table.
 
 Version 1.02.143 - 13th September 2017
 ======================================
man/dmsetup.8_main +8 -8
index 1e778ad..054746c 100644
@@ -559,14 +559,14 @@ Set the table being loaded read-only.
 .BR -S | --select
 .IR selection
 .br
-Display only rows that match \fIselection\fP criteria. All rows are displayed
-with the additional "selected" column (\fB-o selected\fP) showing 1 if the row
-matches the \fIselection\fP and 0 otherwise. The selection criteria are defined
-by specifying column names and their valid values while making use of
-supported comparison operators. As a quick help and to see full list of
-column names that can be used in selection and the set of supported
-selection operators, check the output of \fBdmsetup\ info\ -c\ -S\ help\fP
-command.
+Process only items that match \fIselection\fP criteria.  If the command is
+producing report output, adding the "selected" column (\fB-o
+selected\fP) displays all rows and shows 1 if the row matches the
+\fIselection\fP and 0 otherwise. The selection criteria are defined by
+specifying column names and their valid values while making use of supported
+comparison operators. As a quick help and to see full list of column names that
+can be used in selection and the set of supported selection operators, check
+the output of \fBdmsetup\ info\ -c\ -S\ help\fP command.
 .
 .HP
 .BR --table
tools/dmsetup.c +38 -10

107 lines not on this page · raw message