From: Frank Filz Date: Fri, 30 Jun 2006 08:56:11 +0000 (-0700) Subject: [PATCH] knfsd: fixing missing 'expkey' support for fsid type 3 X-Git-Tag: MMI-PSA29.97-13-9~48642 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4bdff8c0950afa6a3f2efec6cd15159d97fac1e6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] knfsd: fixing missing 'expkey' support for fsid type 3 Type '3' is used for the fsid in filehandles when the device number of the device holding the filesystem has more than 8 bits in either major or minor. Unfortunately expkey_parse doesn't recognise type 3. Fix this. (Slighty modified from Frank's original) Signed-off-by: Frank Filz Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 3eec30000f3f..01bc68c628ad 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -126,7 +126,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) if (*ep) goto out; dprintk("found fsidtype %d\n", fsidtype); - if (fsidtype > 2) + if (key_len(fsidtype)==0) /* invalid type */ goto out; if ((len=qword_get(&mesg, buf, PAGE_SIZE)) <= 0) goto out;