On 04/07/14 at 03:06pm, Karel Zak wrote:
On Mon, Apr 07, 2014 at 08:18:28AM -0400, Steve Dickson wrote:
My apologies for the delayed response... I was traveling last week...
On 04/03/2014 02:58 AM, Baoquan He wrote:
On 04/03/14 at 02:32pm, WANG Chao wrote:
On 03/31/14 at 03:17pm, Baoquan He wrote:
$_fstype could be "nfs4" (I found this on my setup) and kdump will fail. You need to handle this "nfs4" case as well.
Good catch, chao. I used rhel7 client and rhel5 server to test, then fstype is always nfs when I execute findmnt. When use rhel7 client and fedora server, fstype is nfs4 when execute findmnt.
Hi Steve,
So from v4, has the rule been changed? It will return nfs4 or nfs, why not doing like before?
Well, I'm guess its because the default protocol has changed from v3 to v4 but you should have seen this problem with RHEL6 as well since when the default protocol changed.
Thanks, Steve and Karel
So now in nfs file system, nfsv1/2/3 use the same file_system_type, namely &nfs_fs_type. However in nfsv4, it uses its onw file_system_type like below. I am gonna to ask if this can be changed back to be "nfs" just like the previous 3 version.
static struct file_system_type nfs4_remote_fs_type = { .owner = THIS_MODULE, .name = "nfs4", ~~~~~~~ This gonna be the fs type in /proc/self/mountinfo
.mount = nfs4_remote_mount, .kill_sb = nfs_kill_super, .fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA, };
static struct file_system_type nfs4_remote_referral_fs_type = { .owner = THIS_MODULE, .name = "nfs4", .mount = nfs4_remote_referral_mount, .kill_sb = nfs_kill_super, .fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA, };
struct file_system_type nfs4_referral_fs_type = { .owner = THIS_MODULE, .name = "nfs4", .mount = nfs4_referral_mount, .kill_sb = nfs_kill_super, .fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA, };
Thanks Baoquan
I am not sure who is the maintainer of util-linux which contains findmnt, do you know this?
Karel Zak is the maintainer, I've cc-ed him....
findmnt reads /proc/self/mountinfo