[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

O_CREAT -> /etc/mtab?



I wanted to see all files that are written to during the boot cycle so
I patched fs/open.c to printk the filename whenever a file is opened with 
the O_CREAT or O_TRUNC flags.  Everything appears normal with lots of 
writes to /dev/null, /var/run/utmp, etc., but I am also seeing writes to
"/etc/mtab" and some weird variations of /etc/mtab such as "/etc/mtab~53"
and "/etc/mtab~83".  What are these "files"?  They do not exist on the
system and no other files in the boot cycle have the "^\d{2}" extension.

--Mike

Michael B. Rash
http://www.cipherdyne.com
-
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/