|
From: Miklos S. <mi...@sz...> - 2007-08-27 15:19:03
|
> I'm trying to get my toy FS to touch a file. I have the following > functions already written: > * access > * getattr > * mknod > * readdir > * statfs > * utimens (just returns 0 now...) > * write > > In all of those functions, I have a fprintf to a file that's > constantly flushed. When I try to touch "foo" I get the following > error: > > touch: cannot touch `test/foo`: Input/output error > > I don't know why I'm getting this error, fuse read/write functions > arnt being called. My getattr function does read a inode from disk, > but it is logging that it worked fine, like it did for the root dir. > > What could be causing this? EIO is probably because you are returning an invalid file mode in getattr(). The file mode _must_ include the file type, such as S_IFREG or S_IFDIR. Miklos |