summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-05-08 10:16:23 +1000
committerChris Mason <clm@fb.com>2015-10-06 06:55:23 -0700
commit7d35199e15b82a4d1a20049153b03e6258ce79f7 (patch)
tree285948462f1025eba99217bbb979399f414b41d5 /fs/open.c
parente5fffbac4a49270e4976d71a0e054c0cf3ef4f8e (diff)
BTRFS: support NFSv2 export
The "fh_len" passed to ->fh_to_* is not guaranteed to be that same as that returned by encode_fh - it may be larger. With NFSv2, the filehandle is fixed length, so it may appear longer than expected and be zero-padded. So we must test that fh_len is at least some value, not exactly equal to it. Signed-off-by: NeilBrown <neilb@suse.de> Acked-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions