]> git.baikalelectronics.ru Git - kernel.git/commit
NFS4: Cleanup FATTR4_WORD0_FS_LOCATIONS after decoding success
authorKinglong Mee <kinglongmee@gmail.com>
Wed, 18 Nov 2015 02:39:26 +0000 (10:39 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Nov 2015 02:56:53 +0000 (21:56 -0500)
commitde5ea72552352662551bb2664abd5fab3dc0b29e
treefd99e0a31adb1b754a15accaaff966a443898acd
parent656faaa1d7b893abf3516ab2f2de4fa1af1183b9
NFS4: Cleanup FATTR4_WORD0_FS_LOCATIONS after decoding success

Commit 5b3dbcbef7 "nfs: Fix GETATTR bitmap verification" has check
the bitmap after decoding success, but decode_attr_fs_locations forgets
cleanup the FATTR4_WORD0_FS_LOCATIONS bits.

decode_getfattr_attrs always return -EIO when meeting FS_LOCATIONS now.

ls: cannot access /mnt/referal: Input/output error
ls: cannot access /mnt/replicas: Input/output error
total 32
drwxr-xr-x. 7 root root 8192 Nov 16 20:36 pnfs
??????????? ? ?    ?       ?            ? referal
??????????? ? ?    ?       ?            ? replicas

v2: clear the bit earlier

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4xdr.c