• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/hdparm-9.43/wiper/

Lines Matching refs:fsdir

199 ## Find the active mount-point (fsdir) associated with a device ($1: fsdev).
220 ## Find the device (fsdev) associated with a mount point ($1: fsdir).
224 function get_fsdev(){ ## from fsdir
228 ## Find the r/w or r/o status (fsmode) of a filesystem mount point ($1: fsdir)
232 function get_fsmode(){ ## from fsdir
239 echo "$fsdir: unable to determine mount status, aborting." >&2
278 ## Do some preliminary correctness/feasibility checks on fsdir:
281 ## Ensure fsdir exists and is accessible to us:
282 fsdir="$target"
283 cd "$fsdir" || exit 1
285 if [ "$fsdir" = "/" ]; then
289 fsdev="`get_fsdev $fsdir`"
291 echo "$fsdir: not found in /proc/mounts, aborting." >&2
320 fsmode="`get_fsmode $fsdir`" || exit 1
329 ## We might already have fsdev/fsdir from above; if not, we need to find them.
330 if [ "$fsdev" = "" -o "$fsdir" = "" ]; then
332 fsdir="`get_fsdir "$fsdev" < /proc/mounts`"
334 if [ "$fsdir" = "" -a "$fsdev" = "$rootdev" ]; then
335 fsdir="`get_fsdir /dev/root < /proc/mounts`"
336 if [ "$fsdir" = "" ]; then
338 [ "$rdev" != "" ] && fsdir="`get_fsdir "$rdev" < /proc/mounts`"
343 ## If the filesystem is truly not-mounted, then fsdir will still be empty here.
347 if [ "$fsdir" != "" ]; then
348 fsmode="`get_fsmode $fsdir`" || exit 1
352 cd "$fsdir" || exit 1
364 ## and we definitely know the fsdev, as well as the fsdir (fsdir="" if not-mounted).
409 if [ "$fsdir" = "" ]; then
416 fstype="`$GAWK -v p="$fsdir" '{if ($2 == p) r=$3} END{print r}' < /proc/mounts`"
417 [ $verbose -gt 0 ] && echo "$fsdir: fstype=$fstype"
614 [ "$fsdir" = "" ] || mountstatus="$fstype mounted $fsmode at $fsdir"