]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitb8da0d1c27f144bce999c653467106f3f0d5a308
treeeedc2f54d8dd6768b953b4d9e1b6075b62fc21ad
parenta1033be72cdb053e182bb41e302a1c11e72b68bb
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