]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: stop READDIRPLUS returning inconsistent attributes
authorNeilBrown <neilb@suse.de>
Sat, 2 May 2015 23:16:53 +0000 (09:16 +1000)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 7 May 2015 15:47:00 +0000 (11:47 -0400)
commit912f3ba2dcdf6473cafd8b166651d38079ae3c9a
tree506113d48acf247d47ec07ee33b31c5332a00087
parent9170a6b754b5ac6c20f951d75df79422bdb6bfa3
nfsd: stop READDIRPLUS returning inconsistent attributes

The NFSv3 READDIRPLUS gets some of the returned attributes from the
readdir, and some from an inode returned from a new lookup.  The two
objects could be different thanks to intervening renames.

The attributes in READDIRPLUS are optional, so let's just skip them if
we notice this case.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs3xdr.c