]> git.baikalelectronics.ru Git - kernel.git/commit
knfsd: Validate filehandle type in fsid_source
authorNeil Brown <neilb@suse.de>
Wed, 5 Sep 2007 21:22:13 +0000 (17:22 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Sep 2007 01:57:47 +0000 (18:57 -0700)
commit54ab2a6522b40afd24e031e7b555afa890ac811a
treeeedc2f54d8dd6768b953b4d9e1b6075b62fc21ad
parent8ed54aef264a5df71b751d0a50a51376773e0ea0
knfsd: Validate filehandle type in fsid_source

fsid_source decided where to get the 'fsid' number to
return for a GETATTR based on the type of filehandle.
It can be from the device, from the fsid, or from the
UUID.

It is possible for the filehandle to be inconsistent
with the export information, so make sure the export information
actually has the info implied by the value returned by
fsid_source.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: "Luiz Fernando N. Capitulino" <lcapitulino@gmail.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/nfsfh.c