Skip to contentSkip to conversation

'multipath' with -h and -t option, it returns '1' (fail) for successful command execution.

PATCH Christophe Varoqui 1 participant 1 message Oct 4, 2011 1 message not in the archive Device mapper

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · aruna

Hi,

The patch handles the exit status of -h and -t option for multipath command.

You patch does not apply to the HEAD. And you should submit with patch inline for "git am" to work and preserve your patch comment and authorship.

Thanks,
cvaroqui

Quoted 38 lines
# multipath -h
multipath-tools v0.4.9 (05/33, 2016)
Usage:
  multipath [-d] [-r] [-v lvl] [-p pol] [-b fil] [dev]
  multipath -l|-ll|-f [-v lvl] [-b fil] [dev]
  multipath -F [-v lvl]
  multipath -t
  multipath -h

.......

# echo $?
1
# multipath -t | more 
defaults {
        verbosity 2
        polling_interval 10
        udev_dir "/dev"
        multipath_dir "/lib64/multipath"
     ...
}
...
# echo $?
1

Since kernel.org is unavailable i have got the recent snapshot from

http://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=f7735ad547d9ebb952993ac0a6def0400fb23c80;sf=tgz

Thanks,
Aruna Balakrishnaiah