[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: trouble implementing default quotas



> 
> So explain how this is supposed to work. Each user has a 
> quota structure,
> an xfs_dquot_t which is looked up via xfs_qm_dqget. This is the in
> memory representation of a user's quota. If quotas are not defined for
> a specific user then there is no structure, and nothing happens with
> quotas. So you are trying to implement default quotas for accounts
> the administrator did not configure one for. Where does the 
> quota space
> used get recorded, do all user's without a specific quota get to share
> one pool of quota space?
> 
> Steve
> 
> -- 
> 
> Steve Lord                                      voice: +1-651-683-3511
> Principal Engineer, Filesystem Software         email: lord@sgi.com
>

My idea was to enforce limits that were defined in the root quota regardless
of whether there was a specifically defined quota or not.  I thought when
accounting was active, and a user wrote to that filesystem, the file was
accounted for (xfs_dquot_t created).  If enforcement was active, then the
system checked for the limits and if they were > 0, then they were enforced.
Is an xfs_dquot_t only created when limits are set?

Cary