tech-kern archive

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

Re: quota2 qv_grace



On Tue, Jun 21, 2016 at 07:21:09PM +0200, Edgar Fuß wrote:
> I'm confused how the file-system default grace period is supposed to get 
> copied to the per-user grace period quota2 supports. It appears that this 
> happens as soon as something gets allocated for the user (i.e., just by 
> system calls, not by any userland program like edquota). However, I find 
> nothing in sys/ufs/ufs/ufs_quota2.c that looks like it does that. What am 
> I overlooking?
> 
> I remember I wrote the patch that causes qv_timelimit to get set to 
> <current time> + qv_grace, but not how the latter gets set.

It should be
	memcpy(q2e, &q2h->q2h_defentry, sizeof(*q2e));
in quota2_q2ealloc().

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index