Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4584f520 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix NFS mountpoint crossing...



The check that was added to nfs_xdev_get_sb() to work around broken
servers, works fine for NFSv2, but causes mountpoint crossing on NFSv3 to
always return ESTALE.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 75b8c133
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1475,7 +1475,7 @@ static int nfs_xdev_get_sb(struct file_system_type *fs_type, int flags,
		error = PTR_ERR(mntroot);
		error = PTR_ERR(mntroot);
		goto error_splat_super;
		goto error_splat_super;
	}
	}
	if (mntroot->d_inode->i_op != &nfs_dir_inode_operations) {
	if (mntroot->d_inode->i_op != server->nfs_client->rpc_ops->dir_inode_ops) {
		dput(mntroot);
		dput(mntroot);
		error = -ESTALE;
		error = -ESTALE;
		goto error_splat_super;
		goto error_splat_super;