Need to better ensure the mountpoint matching so that only
/mnt/lustre is mtched, but not /mnt/lustre-{mds,ost}
Change-Id: I0ca274a358de3a38542e05bb5682641459fea93d
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/29957
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
[ -e $DIR/$tfile ] && error "$DIR/$tfile exists incorrectly"
remount_client rw $MOUNT || error "remount_client with rw failed"
touch $DIR/$tfile || error "touch $DIR/$tfile failed"
- MCNT=$(grep -c $MOUNT /etc/mtab)
+ MCNT=$(grep -c $MOUNT' ' /etc/mtab)
[ "$MCNT" -ne 1 ] && error "$MOUNT in /etc/mtab $MCNT times"
umount_client $MOUNT
stop_mds || error "Unable to stop MDS"