Skip to content

Commit

Permalink
Merge f4075ec into 441a6f9
Browse files Browse the repository at this point in the history
  • Loading branch information
germanop committed Sep 3, 2015
2 parents 441a6f9 + f4075ec commit 23aa73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multipath/sm-multipath
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ start() {
ROOT_DISK_MINOR=${ROOT_PART_SLAVE#dm-}
MPATH_NODES="$(dmsetup ls --target multipath --exec ls)"
for n in $MPATH_NODES ; do
NODE_MINOR="$(stat -L --format=%T $n)"
# stat %T returns value in hex, convert to decimal before comparing
NODE_MINOR="$((0x$(stat -L --format=%T $n)))"
if [ "$ROOT_DISK_MINOR" = "$NODE_MINOR" ] ; then
mkdir -p /dev/disk/mpInuse
ln -sf $n /dev/disk/mpInuse
Expand Down

0 comments on commit 23aa73b

Please sign in to comment.