LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2004, 07:19 AM   #1
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Rep: Reputation: 15
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.
 
Old 04-23-2004, 08:04 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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!
 
Old 04-23-2004, 09:10 AM   #3
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Original Poster
Rep: Reputation: 15
Thank you ! Excellent answer. Simply superb.
Hatsoff .
Thank you once again.
Bye,
Eshwar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration