Re: Ok, grace period under Linux definitely broken...

Jon Lewis (jlewis@inorganic5.fdt.net)
Sun, 13 Jul 1997 15:23:56 -0400 (EDT)


On Sun, 13 Jul 1997, Zeev Suraski wrote:

> I've patched quota.c a bit to see what was going wrong, and looks like
> dqblk.dqb_btime (the timestamp that represents when the grace period is
> over) is erronously set to 0:
>
> A regular, lucky user:
> 13:26 bourbon-ttyp5 nvlinux:~bourbon#./quota -q dtl
> Grace period ended on 869674956 (current time 868789581)
> Disk quotas for user dtl (uid 32068):
> In block grace period on /dev/sdb1
>
> A user dquot.c doesn't like:
> 13:26 bourbon-ttyp5 nvlinux:~bourbon#./quota -q bargold
> Grace period ended on 0 (current time 868789585)
> Disk quotas for user bargold (uid 32070):
> Over block quota on /dev/sdb1

I don't know if this is related to the problem you're having, but grace
period setting seems to differ depending on how the blocks get there.
i.e.

[done as root]
yoda:/home/local/g/gnorton# cp /usr/src/linux.tgz .
yoda:/home/local/g/gnorton# ls -l
total 9907
-rwx--x--x 1 gnorton users 1908 Nov 26 1995 WWW-Readme*
-rw-r--r-- 1 root root 14280 Dec 18 1996 cucibug.tgz
-rw------- 1 gnorton users 362 Jul 10 23:24 dead.letter
-rwx------ 1 root root 10075731 Jul 13 15:17 linux.tgz*
drwx------ 2 gnorton users 1024 Jul 11 00:29 mail/
-rw------- 1 gnorton users 1268 Jul 17 1996 mbox
-rw------- 1 gnorton users 4177 Feb 8 01:02 msg1.doc
lrwxrwxrwx 1 root root 29 Apr 16 05:36 public_ftp -> /home/ftp/pub/users/g/gnorton/
drwxr-xr-x 2 gnorton users 1024 Apr 16 05:36 public_html/
yoda:/home/local/g/gnorton# quota -v gnorton
Disk quotas for user gnorton (uid 576):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb4 32 2048 3072 1 50 100
/dev/sdc1 319 5120 10240 28 5120 10240
/dev/sda3 0 5120 40960 0 256 10240
yoda:/home/local/g/gnorton# chown gnorton linux.tgz
yoda:/home/local/g/gnorton# quota -v gnorton
Disk quotas for user gnorton (uid 576):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb4 32 2048 3072 1 50 100
/dev/sdc1 10199* 5120 10240 none 29 5120 10240
/dev/sda3 0 5120 40960 0 256 10240
yoda:/home/local/g/gnorton#

rm the linux.tgz file and repeat as gnorton

yoda:/home/local/g/gnorton# quota -v gnorton
Disk quotas for user gnorton (uid 576):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb4 32 2048 3072 1 50 100
/dev/sdc1 319 5120 10240 28 5120 10240
/dev/sda3 0 5120 40960 0 256 10240
yoda:/home/local/g/gnorton# su gnorton
yoda:/home/local/g/gnorton$ cp /usr/src/linux.tgz .
/home: warning, user disk quota exceeded
yoda:/home/local/g/gnorton$ quota -v
Disk quotas for user gnorton (uid 576):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb4 32 2048 3072 1 50 100
/dev/sdc1 10199* 5120 10240 7days 29 5120 10240
/dev/sda3 0 5120 40960 0 256 10240

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/message.
Florida Digital Turnpike |
________Finger jlewis@inorganic5.fdt.net for PGP public key_______