src/feature -q $TEST_DEV
[ $? -ne 0 ] && _notrun "Installed kernel does not support XFS quota"
- [ ! -x /usr/sbin/repquota ] && _notrun "Quota user tools not installed"
+ [ ! -x /sbin/quotaon ] && _notrun "Quota user tools not installed"
- /usr/sbin/repquota -m -s -a >/dev/null 2>&1
+ /sbin/quotaon -x 2>&1 | grep "option requires an argument -- x" >/dev/null
[ $? -ne 0 ] && _notrun "Installed quota tools do not support XFS"
}
|| _fail " !!! clean $pkg failed"
done
- _log " *** clean quota tools"
- cd $WORKAREA/cmd/quota
- ( rm -f configure ; autoconf ; sh configure ; make clean ) 2>&1 \
- || _fail " !!! clean quota failed"
-
_log " *** clean linux"
cd $WORKAREA/linux
make mrproper 2>&1 \
|| _fail " !!! install $pkg failed"
done
- _log " *** build and install quota tools"
- cd $WORKAREA/cmd/quota
- rm -f configure
-
- # use e-fence - but this will only take effect on configure
- export MALLOCLIB=/usr/lib/libefence.a
- ( autoconf ; sh configure --prefix=/usr; make all ) 2>&1 \
- || _fail " !!! build quota failed"
- _sudo make install 2>&1 \
- || _fail " !!! install quota failed"
-
new_state="install"
;;