summaryrefslogtreecommitdiff
path: root/scripts/blkdeactivate.sh.in
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2017-09-21 17:03:42 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2017-09-21 17:08:44 +0200
commit9f34125d5d6f0755af8b99ec9ca04495cf8d8df6 (patch)
tree6a35ebb1668d6fa5e1abec42352e8fef8a92eca9 /scripts/blkdeactivate.sh.in
parent0ab9e4b6a720972cffc8bc465f4d4c3d788d0820 (diff)
downloadlvm2-9f34125d5d6f0755af8b99ec9ca04495cf8d8df6.tar.gz
blkdeactivate: fix --{dm,lvm,mpath}options option name recognition
There was a typo in blkdeactivate --dmoption/--lvmoption/mpathoption, it had missing "s" at the end and it was not recognized properly, only short names for the options (-d/-l/-m).
Diffstat (limited to 'scripts/blkdeactivate.sh.in')
-rw-r--r--scripts/blkdeactivate.sh.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/blkdeactivate.sh.in b/scripts/blkdeactivate.sh.in
index 969eace58..61c7a86b1 100644
--- a/scripts/blkdeactivate.sh.in
+++ b/scripts/blkdeactivate.sh.in
@@ -113,13 +113,13 @@ usage() {
echo " If devices are specified, deactivate only supplied devices and their holders."
echo
echo " Options:"
- echo " -e | --errors Show errors reported from tools"
- echo " -h | --help Show this help message"
- echo " -d | --dmoption DM_OPTIONS Comma separated DM specific options"
- echo " -l | --lvmoption LVM_OPTIONS Comma separated LVM specific options"
- echo " -m | --mpathoption MPATH_OPTIONS Comma separated DM-multipath specific options"
- echo " -u | --umount Unmount the device if mounted"
- echo " -v | --verbose Verbose mode (also implies -e)"
+ echo " -e | --errors Show errors reported from tools"
+ echo " -h | --help Show this help message"
+ echo " -d | --dmoptions DM_OPTIONS Comma separated DM specific options"
+ echo " -l | --lvmoptions LVM_OPTIONS Comma separated LVM specific options"
+ echo " -m | --mpathoptions MPATH_OPTIONS Comma separated DM-multipath specific options"
+ echo " -u | --umount Unmount the device if mounted"
+ echo " -v | --verbose Verbose mode (also implies -e)"
echo
echo " Device specific options:"
echo " DM_OPTIONS:"
@@ -490,9 +490,9 @@ while test $# -ne 0; do
"") ;;
"-e"|"--errors") ERRORS=1 ;;
"-h"|"--help") usage ;;
- "-d"|"--dmoption ") get_dmopts "$2" ; shift ;;
- "-l"|"--lvmoption ") get_lvmopts "$2" ; shift ;;
- "-m"|"--mpathoption ") get_mpathopts "$2" ; shift ;;
+ "-d"|"--dmoptions") get_dmopts "$2" ; shift ;;
+ "-l"|"--lvmoptions") get_lvmopts "$2" ; shift ;;
+ "-m"|"--mpathoptions") get_mpathopts "$2" ; shift ;;
"-u"|"--umount") DO_UMOUNT=1 ;;
"-v"|"--verbose") VERBOSE=1 ; ERRORS=1 ;;
"-vv") VERBOSE=1 ; ERRORS=1 ; set -x ;;