]> git.baikalelectronics.ru Git - kernel.git/commit
fs/affs: bugfix: make symbolic links work again
authorFabian Frederick <fabf@skynet.be>
Sat, 15 Apr 2017 06:54:36 +0000 (08:54 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Apr 2017 03:54:05 +0000 (23:54 -0400)
commited9deb11e6e820b8baba8ff5f78709b348593700
tree7ffddf20bfec0950cf22cbfd9b1b7fd7512a5ccf
parent4a46f7ef1255fece6f2525bf6b6c51a29186e498
fs/affs: bugfix: make symbolic links work again

AFFS symbolic links were broken since kernel 2.6.29

Problem was bisected to the following

commit b9f390a4e1b5 ("vfs: ensure page symlinks are NUL-terminated")
commit d4e059612d38 ("vfs: introduce helper function to safely
NUL-terminate symlinks")

AFFS wasn't setting inode size when reading symbolic link from disk or
creating a new one. Result was zero allocation in pagecache.

ln -s file symlink

ls -lrt

file
symlink ->

This patch adds inode isize information on inode get and symbolic link
addition.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/inode.c
fs/affs/namei.c