diff options
Diffstat (limited to 'usr.sbin/bsdconfig/share/media/nfs.subr')
-rw-r--r-- | usr.sbin/bsdconfig/share/media/nfs.subr | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/bsdconfig/share/media/nfs.subr b/usr.sbin/bsdconfig/share/media/nfs.subr index 93089cb..9ce0467 100644 --- a/usr.sbin/bsdconfig/share/media/nfs.subr +++ b/usr.sbin/bsdconfig/share/media/nfs.subr @@ -208,19 +208,21 @@ f_media_init_nfs() return $SUCCESS } -# f_media_get_nfs $device $file [$probe_only] +# f_media_get_nfs $device $file [$probe_type] # # Returns data from $file on a mounted NFS device. Similar to cat(1). If -# $probe_only is present and non-NULL, returns success if $file exists. +# $probe_type is present and non-NULL, returns success if $file exists. If +# $probe_type is equal to $PROBE_SIZE, prints the size of $file in bytes to +# standard-out. # f_media_get_nfs() { - local dev="$1" file="$2" probe_only="$3" + local dev="$1" file="$2" probe_type="$3" - f_dprintf "f_media_get_nfs: dev=[%s] file=[%s] probe_only=%s" \ - "$dev" "$file" "$probe_only" + f_dprintf "f_media_get_nfs: dev=[%s] file=[%s] probe_type=%s" \ + "$dev" "$file" "$probe_type" - f_media_generic_get "$MOUNTPOINT" "$file" "$probe_only" + f_media_generic_get "$MOUNTPOINT" "$file" "$probe_type" } # f_media_shutdown_nfs $device |