projects
/
platform
/
upstream
/
multipath-tools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[libmultipath] don't trust the path wwid from cache if pathinfo() fails
[platform/upstream/multipath-tools.git]
/
multipath
/
multipath.dev
1
#!/bin/sh -e
2
3
if [ ! "${ACTION}" = add ] ; then
4
exit
5
fi
6
7
if [ "${DEVPATH:7:3}" = "dm-" ] ; then
8
dev=$(</sys${DEVPATH}/dev)
9
map=$(/sbin/devmap_name $dev)
10
/sbin/kpartx -v -a /dev/$map
11
else
12
/sbin/multipath -v0 ${DEVNAME}
13
fi