Search code examples
clinuxinodeext3

Re-using an inode field


I am in a project where I need to do some book-keeping i.e to indicate whether a particular file has been accessed by a program A. I plan to store this information in the inode as using other additional datastructure would be inefficient. I plan to reuse the field i_mode in the inode datastructure. Any suggestions. Moreover I don't know how to write to the inode data structure from user space. How do I do that? thanks...


Solution

  • After a bit of googling around saw that the "sticky bit" is not much in use today and we can use it as well as modify it from user space.