]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fuse: check file type in lookup
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 6 Jan 2006 08:19:43 +0000 (00:19 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:56 +0000 (08:33 -0800)
commitafe6e84bb29af6f9cf2f0dd502ef357d680954e7
treed656f8b3eb40cd1019a82d4381bbfa33e6caec8e
parent49da510800f672cc7ec62a51a962842e96f913ae
[PATCH] fuse: check file type in lookup

Previously invalid types were quietly changed to regular files, but at
revalidation the inode was changed to bad.  This was rather inconsistent
behavior.

Now check if the type is valid on initial lookup, and return -EIO if not.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/dir.c
fs/fuse/inode.c