Tomas Telensky wrote on 04/21/2005 02:09:08 PM: > If I would be interested, I would start searching from the syscalls (what > the unlink syscall is doing ...). Yes I looked at sys_unlink in fs/namei.c and I don't understand all which is going on. More exactly I don't understand: 1. Why does the code increment the i_count on the directory inode that contains the file? 2. What is unlink_raw and when would that code path get invoked? If I do manage to create a function that does what I need, how can I be _sure_ I am not messing up something in the filesystem? In my case I am trying to delete a file that I created in kernel context to begin with so I don't need to do some of the things sys_unlink does. Thanks! Tony -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/