From 7d920166178e6f8b13da9200f7a8edbcc6e4a7aa Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 2 Aug 2011 12:20:43 +0200 Subject: [PATCH] add nfs4 support Signed-off-by: Christoph Hellwig Tested-by: Jim Rees --- common.rc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common.rc b/common.rc index a5378ddf..2cbcb73a 100644 --- a/common.rc +++ b/common.rc @@ -558,7 +558,13 @@ _fs_type() exit 1 fi - _df_device $1 | $AWK_PROG '{ print $2 }' + # + # The Linux kernel shows NFSv4 filesystems in df output as + # filesystem type nfs4, although we mounted it as nfs earlier. + # Fix the filesystem type up here so that the callers don't + # have to bother with this quirk. + # + _df_device $1 | $AWK_PROG '{ print $2 }' | sed -e 's/nfs4/nfs/' } # return the FS mount options of a mounted device -- 2.39.5