Maybe I have to do that; maybe I can also somehow link it to the inode
the block is associated with...
Each ext2 inode has an i_file_acl and an i_dir_acl `pointer'. These
point to blocks allocated `naked' on the ext2 filesystem; they are not
in the regular inode block map. (The blocks contain Access Control
Lists, obviously).
Whenever an ACL block is found to be reusable, it is linked to by
another
inode, and its refcount is incremented. Then, there are multiple owners.
This
goes up to 1024 references per ACL block, currently. (That number may be
too
high for reasonable fault-tolerance, I have to experiment a little.)
>
> > Any ideas what it takes to make quotacheck count these blocks correctly?
> >
> > (Currently, it's not even easy to find out how many blocks are
> > allocated for a particular user and inode.)
> Uhh.. Quotacheck is just userspace tool... It would have to gain somehow
> a user list to accout blocks to. I know too few about your problem to decide
> how to do this...
Maybe I can stuff this piece of information in struct stat.
The stat code is quite tricky, there are two stat structs, and
two sets of system calls. Also, conversion between the in-kernel
memory layout and the external one is done in userspace, which
means glibc might need to be rebuilt, etc.
Thanks,
Andreas.
------------------------------------------------------------------------
Andreas Gruenbacher, Vienna University of Technology
a.gruenbacher@infosys.tuwien.ac.at
Contact information: http://www.infosys.tuwien.ac.at/~agruenba
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/