summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2012-07-27 20:03:07 +0100
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 20:03:07 +0100
commit25ae0b39b77d80990d0821729ab4f2307bd38c16 (patch)
tree4a902a55dcf4708f6d7a6d2febcf661fde2ad7aa /tools
parent186a2772e8ac3c2088bdfc833c32d773464d666b (diff)
downloadlvm2-25ae0b39b77d80990d0821729ab4f2307bd38c16.tar.gz
lvm2-25ae0b39b77d80990d0821729ab4f2307bd38c16.tar.xz
lvm2-25ae0b39b77d80990d0821729ab4f2307bd38c16.zip
dmsetup: allow --noflush with status/wait for thin
Allow --noflush with dmsetup status and wait (for thin target 1.3.0 / ioctl 4.23.0).
Diffstat (limited to 'tools')
-rw-r--r--tools/dmsetup.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 2787b766..5422f0b3 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -1642,6 +1642,9 @@ static int _status(CMD_ARGS)
if (_switches[CHECKS_ARG] && !dm_task_enable_checks(dmt))
goto out;
+ if (_switches[NOFLUSH_ARG] && !dm_task_no_flush(dmt))
+ goto out;
+
if (!dm_task_run(dmt))
goto out;
@@ -2994,9 +2997,9 @@ static struct command _commands[] = {
{"ls", "[--target <target_type>] [--exec <command>] [-o options] [--tree]", 0, 0, 0, _ls},
{"info", "[<device>]", 0, -1, 1, _info},
{"deps", "[-o options] [<device>]", 0, -1, 1, _deps},
- {"status", "[<device>] [--target <target_type>]", 0, -1, 1, _status},
+ {"status", "[<device>] [--noflush] [--target <target_type>]", 0, -1, 1, _status},
{"table", "[<device>] [--target <target_type>] [--showkeys]", 0, -1, 1, _status},
- {"wait", "<device> [<event_nr>]", 0, 2, 0, _wait},
+ {"wait", "<device> [<event_nr>] [--noflush]", 0, 2, 0, _wait},
{"mknodes", "[<device>]", 0, -1, 1, _mknodes},
{"mangle", "[<device>]", 0, -1, 1, _mangle},
{"udevcreatecookie", "", 0, 0, 0, _udevcreatecookie},