OpenSolaris

Printable Version Enter a New Search
Bug ID 6624758
Synopsis Regular quotas are not being enforced
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:zfs
Keywords
Responsible Engineer Mark Maybee
Reported Against snv_77
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_78
Fixed In snv_78
Release Fixed solaris_nevada(snv_78) , solaris_10u6(s10u6_01) (Bug ID:2160906)
Related Bugs 6643424
Submit Date 1-November-2007
Last Update Date 29-April-2008
Description
Using the following script I'm seeing two problems with quotas in onnv-10/31.

1) The last mkfile of 200m is completing and thereby exceeding the quota
2) The performance of the 200m mkfile is very slow. 

bash-3.00# ./sq
+ zpool destroy testpool
+ zpool create testpool c1t3d0
+ zfs set mountpoint=/testdir testpool
+ /usr/sbin/zfs set quota=500m testpool
+ /usr/sbin/mkfile 400m /testdir/file1
+ /usr/sbin/zfs snapshot testpool@testsnap
+ /usr/sbin/zfs destroy testpool@testsnap
+ /usr/sbin/mkfile 200m /testdir/file2
bash-3.00# zfs list
NAME       USED  AVAIL  REFER  MOUNTPOINT
testpool   600M      0   600M  /testdir
bash-3.00# zfs get quota testpool
NAME      PROPERTY  VALUE     SOURCE
testpool  quota     500M      local
bash-3.00# 

This is present since the 1030 nightly onwards.
Work Around
N/A
Comments
N/A