]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv3: Ensure that do_proc_get_root() reports errors correctly
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Aug 2012 16:42:15 +0000 (12:42 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Sep 2012 02:37:21 +0000 (03:37 +0100)
commita2810e5462e83ee74a5d20b68b39daa1402a4e5e
treee06d53523215a8cee542af95b3565bfea5fb295b
parent61ebf0a926149cc161131470cf848cb70b3d6fe6
NFSv3: Ensure that do_proc_get_root() reports errors correctly

commit 086600430493e04b802bee6e5b3ce0458e4eb77f upstream.

If the rpc call to NFS3PROC_FSINFO fails, then we need to report that
error so that the mount fails. Otherwise we can end up with a
superblock with completely unusable values for block sizes, maxfilesize,
etc.

Reported-by: Yuanming Chen <hikvision_linux@163.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/nfs3proc.c