I thought about this (as much as I could without knowing quota
better) when I wrote it.
Why would you need more information in the inode? If quota
scans by inode and reads information from each inode, then you
need some kind of info in the inode.
But, if quota scans through the directories, then there is no
problem. Each link and what inode it points to is kept in a
database (actually files can be removed from the data base and
put in the summary as soon as all their links are counted,
because then the quota system can divide up the "points" and no
longer needs to track the file. For singly linked files, this
is almost every file.
(Which method is used?)
Actually, the change to the filesystem would NOT be all that
radical. Each inode would have a pointer to the first
link. Each directory entry would have a pointer to the next
directory entry on the list (if any). Thus the size of an inode
is increased by one pointer, and the size of a directory entry
likewise.
--> This could speed up various parts of the filesystem layer,
and could provide better redundancy info for fsck. The standard
question "What file is this inode?" could be answered quickly
and easily.
--kmb203@psu.edu---------------Debian/GNU--1.2---Linux--2.0.25---
Develop free apps? http://www.jagunet.com/~braddock/fslu/org
-----------------------------------------------------------------
Pascal, n.: A programming language named after a man who would
turn over in his grave if he knew about it.