LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   About file permissions (https://www.linuxquestions.org/questions/programming-9/about-file-permissions-173654/)

eshwar_ind 04-23-2004 07:19 AM

About file permissions
 
Hi!
I have a doubt. Please if any one knows the answer please let me know.
The question is,
Whats the advantage of keeping file attributes in inode instead keeping it in the file directory entries( means the directory file where we can inode number based on the file name) ?
If any one knows please let me know .
Advanced thanks .
Bye,
Eshwar. :Pengy:

Hko 04-23-2004 08:04 AM

I've never thoght about this, but I can think of one disadvantage (error) that would be introduced:

Say the atrributes are in the directory entries. Then, say, you change the file /home/eshwar/text.txt and save it. The de modification time of the file changes of course. This modification time is in de the directory, so the mod. time of the directory /home/eshwar is updated as well. The mod.time of "eshwar" is update in /home, the same happens again. Lastly the mod.time of "home" is update in /.

The mod.times of all parent dir's, allways up until /, will change to the time of the last modified file in the whole system!

eshwar_ind 04-23-2004 09:10 AM

Thank you ! Excellent answer. Simply superb.
Hatsoff .
Thank you once again.
Bye,
Eshwar.


All times are GMT -5. The time now is 04:58 PM.