diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-03-05 15:48:11 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2012-03-05 15:48:11 +0100 |
commit | ac45d61357e86b9a0cf14e45e8e09dfb626970ef (patch) | |
tree | e560d3a8f26d1530780ed62f2a4bd3f16a20ac55 /arch/Kconfig | |
parent | 192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff) | |
download | linux-ac45d61357e86b9a0cf14e45e8e09dfb626970ef.tar.gz linux-ac45d61357e86b9a0cf14e45e8e09dfb626970ef.tar.bz2 linux-ac45d61357e86b9a0cf14e45e8e09dfb626970ef.zip |
fuse: fix nlink after unlink
Anand Avati reports that the following sequence of system calls fail on a fuse
filesystem:
create("filename") => 0
link("filename", "linkname") => 0
unlink("filename") => 0
link("linkname", "filename") => -ENOENT ### BUG ###
vfs_link() fails with ENOENT if i_nlink is zero, this is done to prevent
resurrecting already deleted files.
Fuse clears i_nlink on unlink even if there are other links pointing to the
file.
Reported-by: Anand Avati <avati@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'arch/Kconfig')
0 files changed, 0 insertions, 0 deletions