diff options
author | Paul Moore <pmoore@redhat.com> | 2015-01-21 23:59:56 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-23 00:22:20 -0500 |
commit | 08518549722f0c992a9e4be71a0777f37147e9d2 (patch) | |
tree | 80ac5b25e4b113fb80125c01e26e846f5fde4b98 /fs/nfs/pnfs.c | |
parent | fa14a0b8d2bca1d2226afaa04bdf80200d8e9b03 (diff) | |
download | lwn-08518549722f0c992a9e4be71a0777f37147e9d2.tar.gz lwn-08518549722f0c992a9e4be71a0777f37147e9d2.zip |
fs: rework getname_kernel to handle up to PATH_MAX sized filenames
In preparation for expanded use in the kernel, make getname_kernel()
more useful by allowing it to handle any legal filename length.
Thanks to Guenter Roeck for his suggestion to substitute memcpy() for
strlcpy().
CC: linux@roeck-us.net
CC: viro@zeniv.linux.org.uk
CC: linux-fsdevel@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/pnfs.c')
0 files changed, 0 insertions, 0 deletions