From: Miklos Szeredi Date: Mon, 5 Mar 2012 14:48:11 +0000 (+0100) Subject: fuse: fix nlink after unlink X-Git-Tag: v3.4-rc4~28^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac45d61357e86b9a0cf14e45e8e09dfb626970ef;p=pandora-kernel.git 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 Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed