Changeset 3001


Ignore:
Timestamp:
Apr 21, 2012, 2:35:39 AM (7 years ago)
Author:
bruno
Message:
  • Fix #609 by using option -L of stat in order to get the correct value for major and minor numbers of mapper links (we were always returning 0 :-() (bzium)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/analyze-my-lvm

    r2995 r3001  
    239239GiveMapperOfdm () {
    240240
    241 major=`stat -c "%t" $1 2> /dev/null`
    242 minor=`stat -c "%T" $1 2> /dev/null`
     241major=`stat -L -c "%t" $1 2> /dev/null`
     242minor=`stat -L -c "%T" $1 2> /dev/null`
    243243
    244244for i in `ls /dev/mapper/*`; do
    245     mj=`stat -c "%t" $i`
    246     mn=`stat -c "%T" $i`
     245    mj=`stat -L -c "%t" $i`
     246    mn=`stat -L -c "%T" $i`
    247247    if [ "$mj" = "$major" ] && [ "$mn" = "$minor" ]; then
    248248        echo "$i"
Note: See TracChangeset for help on using the changeset viewer.