From owner-freebsd-fs@FreeBSD.ORG Thu Sep 20 21:15:33 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1758416A47B for ; Thu, 20 Sep 2007 21:15:33 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id A1BB513C467 for ; Thu, 20 Sep 2007 21:15:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 05EE520A4; Thu, 20 Sep 2007 11:26:16 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id DFC1520A0; Thu, 20 Sep 2007 11:26:15 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id CAFCC84480; Thu, 20 Sep 2007 11:26:15 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Johan =?utf-8?Q?Str=C3=B6m?= References: Date: Thu, 20 Sep 2007 11:26:15 +0200 In-Reply-To: ("Johan =?utf-8?Q?Str=C3=B6m=22's?= message of "Thu\, 20 Sep 2007 00\:31\:56 +0200") Message-ID: <86y7f1ofgo.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: ZFS (and quota) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 21:15:33 -0000 Johan Str=C3=B6m 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