Date: Thu, 20 Sep 2007 11:26:15 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Johan =?utf-8?Q?Str=C3=B6m?= <johan@stromnet.se> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS (and quota) Message-ID: <86y7f1ofgo.fsf@ds4.des.no> In-Reply-To: <BE54DA53-0353-4EB3-B232-6A7193522582@stromnet.se> ("Johan =?utf-8?Q?Str=C3=B6m=22's?= message of "Thu\, 20 Sep 2007 00\:31\:56 %2B0200") References: <BE54DA53-0353-4EB3-B232-6A7193522582@stromnet.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Johan Str=C3=B6m <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 disk. 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 DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y7f1ofgo.fsf>