Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2007 14:26:25 +0200
From:      =?ISO-8859-1?Q?Johan_Str=F6m?= <johan@stromnet.se>
To:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS (and quota)
Message-ID:  <93AE0860-0FF6-47C7-ACFC-D882D13EC7DB@stromnet.se>
In-Reply-To: <86y7f1ofgo.fsf@ds4.des.no>
References:  <BE54DA53-0353-4EB3-B232-6A7193522582@stromnet.se> <86y7f1ofgo.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 20, 2007, at 11:26 , Dag-Erling Sm=F8rgrav wrote:

> Johan Str=F6m <johan@stromnet.se> writes:
>> I was playing around with ZFS a bit and tried out the quota
>> features. While doing this I noticed that it doesnt seem like you get
>> a "disk  full" notice the same way as you do on a "normal" (UFS)
>> filesystem.  Instead of aborting the operation with "No space left on
>> device" it  just continued:
>> [...]
>> [root@devbox /tank]# zfs create tank/set2
>> [root@devbox /tank/set2]# zfs set quota=3D10M tank/set2
>> [root@devbox /tank/set2]# zfs get quota tank/set2
>> NAME       PROPERTY  VALUE      SOURCE
>> tank/set2  quota     10M        local
>> [root@devbox /tank/set2]# dd if=3D/dev/urandom of=3Dtest
>> ^C
>> 18563+0 records in
>> 18562+0 records out
>> 9503744 bytes transferred in 199.564353 secs (47622 bytes/sec)
>> [root@devbox /tank/set2]# zfs list tank/set2
>> NAME        USED  AVAIL  REFER  MOUNTPOINT
>> tank/set2  9.15M   870K  9.15M  /tank/set2
>
> See what it says under AVAIL?  You killed it before it filled the =20
> disk.
>
[root@devbox /home/johan]# zfs list tank/set2
NAME        USED  AVAIL  REFER  MOUNTPOINT
tank/set2  9.15M   870K  9.15M  /tank/set2

Yes i did, but after 200 seconds one would think that 10Mbs should be =20=

filled (took 2.2s on the ufs) right? :)

> des@ds4 ~% sudo zfs create raid/q
> des@ds4 ~% sudo zfs set quota=3D1m raid/q
> des@ds4 ~% sudo dd if=3D/dev/zero of=3D/raid/q/test bs=3D65536
> dd: /raid/q/test: Disc quota exceeded
> 16+0 records in
> 15+0 records out
> 983040 bytes transferred in 2.533990 secs (387942 bytes/sec)
> des@ds4 ~% zfs list raid/q
> NAME     USED  AVAIL  REFER  MOUNTPOINT
> raid/q  1.03M      0  1.03M  /raid/q

With the  bs=3D65536 parameter it works as expected, I get Disk quota =20=

exceeded. Without it it just keeps on running until I interrupt it

>
> DES
> --=20
> Dag-Erling Sm=F8rgrav - des@des.no




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?93AE0860-0FF6-47C7-ACFC-D882D13EC7DB>