On Wed, 2002-02-13 at 14:04, DICKENS,CARY (HP-Loveland,ex2) wrote:
> I'm implementing a default quota scheme on xfs and have something weird
> going on that I don't understand. I am using a recent cvs snapshot and
> linux 2.4.17.
>
> I want to use root to store the default user and group quota and only
> enforce the default quota if a user doesn't have an explicit quota set.
> When I apply this patch, I lock up when a user, with or without a quota,
> tries to write to the disk. When I copy some files to the filesystem with
> my altered xfs, it appears to lock up returning from the xfs_create call in
> xfs_vnodeops.c. It leaves this function via std_return with error 0, but
> the console never returns a prompt.
>
> Without my patch, all appears ok, so I know I'm doing something screwy. I
> just don't know what.
>
> Any help would be appreciated.
>
> If this is a duplicate post, I'm sorry. I sent one Tuesday night and never
> saw it hit the list, so I'm trying again.
>
> Cary
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@xxxxxxx
|