|
@@ -146,7 +146,7 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh)
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_MODE)
|
|
|
|
|
|
+ if (!(fsinfo.fattr->valid & NFS_ATTR_FATTR_TYPE)
|
|
|| !S_ISDIR(fsinfo.fattr->mode)) {
|
|
|| !S_ISDIR(fsinfo.fattr->mode)) {
|
|
printk(KERN_ERR "nfs4_get_rootfh:"
|
|
printk(KERN_ERR "nfs4_get_rootfh:"
|
|
" getroot encountered non-directory\n");
|
|
" getroot encountered non-directory\n");
|