]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Add explicit MAXNAMELEN check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Feb 2013 20:55:24 +0000 (12:55 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Feb 2013 18:27:39 +0000 (10:27 -0800)
commit9878a89d7ab05ffcdcdbf80233d02e30eea511be
tree011af26f4a5f24772eb61bde9fe274c9f85495cf
parent52768784e66a7b3ca493d907e86ee674ca50193c
Add explicit MAXNAMELEN check

It turns out that the Linux VFS doesn't strictly handle all cases
where a component path name exceeds MAXNAMELEN.  It does however
appear to correctly handle MAXPATHLEN for us.

The right way to handle this appears to be to add an explicit
check to the zpl_lookup() function.  Several in-tree filesystems
handle this case the same way.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1279
module/zfs/zpl_inode.c