Lines Matching refs:fsdir
26 echo " ${0##*/} [--verbose] [--commit] [--reserve=#megs] [--max-ranges=#ranges] <raid_dev> <fsdir>"
48 fsdir=""
63 elif [ "$fsdir" = "" ]; then
64 fsdir=$1
74 [ "$fsdir" = "" ] && usage_error
187 ## Check that fsdir is on an ext4 volume.
189 lines=`$DF --type=ext4 $fsdir 2>/dev/null | $GREP -v ^Filesystem | wc -l`
191 echo "'$fsdir' does not appear to be on an ext4 filesystem. Aborting."
195 ## Check that fsdir is a directory.
197 if [ ! -d $fsdir ]; then
198 echo "'$fsdir' is not a directory. Aborting."
204 freesize=`$DF -P -B 1024 $fsdir | $GAWK '{r=$4}END{print r}'`
206 echo "'$fsdir' is unknown to '$DF'. Aborting."
210 echo "'$fsdir' available space of $freesize KB is less than the $reservekilos KB to be reserved for the TRIM operation. Aborting." >&2
214 tmpfile="$fsdir/${0##*/}_TMPFILE.$$"