Subject: Re: Disk Quota's over NFS
To: Duncan McEwan <duncan@mcs.vuw.ac.nz>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-net
Date: 11/27/2002 22:39:55
On Wed, Nov 27, 2002 at 05:08:16PM +1300, Duncan McEwan wrote:
> I'm experimenting with disk quotas at the moment and everything seems to work
> as expected when a quota is exceeded on a local file system (kernel logs a
> message to my terminal saying "write failed, user disk limit reached" and the
> application writing the file prints out "Disc quota exceeded".
> 
> But when I do the same thing on a workstation with a file system mounted via
> NFS I get odd results.
> 
> The following command sequence shows a user "visitor6" with a soft quota limit
> of 51200 blocks and a hard limit of 102400 blocks.  They currently have 85172
> blocks allocated so are over their soft limit.  If they then try to make a copy
> of a 70MB file they should exceed their hard limit after about 17MB's are
> copied.  But "ls -l"'s done while the cp was running show that it seems to copy
> the entire file before truncating it to 17MB.

What version are you running ? A bug behaving like that has been fixed 
before 1.6 was released ...

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