summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-05-08 03:16:23 +0300
committerChris Mason <clm@fb.com>2015-10-06 16:55:23 +0300
commit7d35199e15b82a4d1a20049153b03e6258ce79f7 (patch)
tree285948462f1025eba99217bbb979399f414b41d5 /fs/btrfs/disk-io.c
parente5fffbac4a49270e4976d71a0e054c0cf3ef4f8e (diff)
downloadlinux-7d35199e15b82a4d1a20049153b03e6258ce79f7.tar.xz
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/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions