On Wed, Oct 17, 2001 at 09:15:35PM -0400, D Cleveland wrote: > I have a basic file system (meaning i can mount and unmount). When I cd > into the mount point and do an 'ls' i was expecting a segfault or some > such reaction since no functions were defined (well defined as null). > Instead, I got ".: no such file or directory" - which i dont understand > why. Any thoughts? (code availible upon request dont wanna waste disk > space for everyone) Thanks in advance! > > Dan Hi Dan, Take a look at some of the VFS sources. The kernel _always_ checks before dereferencing the functions you define in file_operations or inode_operations or whatever other generic structure because it is perfectly ok for you to not define all of the available functions. Since you didn't define a readdir() for your FS, ls failed as you described. BTW: If you do find a place where the kernel is not checking - tell Linus. ************************************************ "When in doubt, use brute force." Ken Thompson Etay Meiri cl1@netvision.net.il ************************************************ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/