From: Stef B. <st...@gm...> - 2010-06-17 05:22:23
|
2010/6/17 Nikolaus Rath <Nik...@ra...>: > Stef Bon <ste...@pu...> writes: >> Hello, >> >> >> But what to do when a file (or a directory) is removed, while there is >> an inode and entry created by my fs for this entry. > > This is more of a design question, I don't think there is a single > answer that's will always be the best solution. Both keeping the entry > alive and removing it can be justified. > >> Do I have to program it in my fs, everywhere in my fs when it appears >> that in the underlying entries are changed or deleted, or is this done >> by the VFS subsystem in the kernel? > > The kernel doesn't know anything about how your fs works, so it cannot > possibly handle any issues with the underlying file system for you. Your > file system has to cope with that on its own. Yes I know. But the kernel/VFS will detect that the inode does exist, while a call like getattr gives an error like -NOENT. My question is what does the kernel/VFS do with that? Stef |