Bug 70296

Summary: quotas don't work
Product: [Retired] Red Hat Public Beta Reporter: Nils Philippsen <nphilipp>
Component: kernelAssignee: Stephen Tweedie <sct>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: limbo   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-31 19:05:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nils Philippsen 2002-07-31 15:16:35 UTC
Description of Problem:

SSIA

Version-Release number of selected component (if applicable):

kernel-2.4.18-7.80 #1

How Reproducible:

Easily.

Steps to Reproduce:
1. mount fs with quota
2. quotacheck fs to create quota files
3. exceed quota
4. watch your disks burst ;-)

Actual Results:

[user2@YC8D398L user2]$ df .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vg00/LogVol01     4128448    156720   3762016   4% /home
[user2@YC8D398L user2]$ quota
Disk quotas for user user2 (uid 501): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/vg00/LogVol01
                 112820*   2048   10240              17       0       0        
[user2@YC8D398L user2]$ du -s
112824
.
[user2@YC8D398L user2]$ dd if=/dev/zero of=test2 bs=1M count=200
200+0 records in
200+0 records out
[user2@YC8D398L user2]$ du -s
317828
.
[user2@YC8D398L user2]$ vi test2
[user2@YC8D398L user2]$ pwd; mount|grep /home
/home/user2
/dev/vg00/LogVol01 on /home type ext3 (rw,quota)
[user2@YC8D398L user2]$ df .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vg00/LogVol01     4128448    361724   3557012  10% /home

Expected Results:

dd should fail.

Additional Information:
	
ACLs are used on the file system.

Comment 1 Stephen Tweedie 2002-07-31 18:28:40 UTC
In the reproducer steps:

> Steps to Reproduce:
> 1. mount fs with quota
> 2. quotacheck fs to create quota files
> 3. exceed quota
> 4. watch your disks burst ;-)

did you remember step 2.5, which is "run quotaon to start quota enforcement on
the filesystem"?

Comment 2 Nils Philippsen 2002-07-31 19:05:44 UTC
Hmpf, that may be it ( I remember that I ran quotaon, but not _when_ in teh
process and whether it succeeded or not...). I'll try tomorrow.

Comment 3 Nils Philippsen 2002-08-02 07:47:48 UTC
OK, my fault. Support by bugzilla, yay! sct: I owe you one.