From owner-freebsd-fs@FreeBSD.ORG Thu Sep 20 22:44:50 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 DCD7C16A417 for ; Thu, 20 Sep 2007 22:44:50 +0000 (UTC) (envelope-from johan@stromnet.se) Received: from av12-2-sn2.hy.skanova.net (av12-2-sn2.hy.skanova.net [81.228.8.186]) by mx1.freebsd.org (Postfix) with ESMTP id 6BCA613C48E for ; Thu, 20 Sep 2007 22:44:50 +0000 (UTC) (envelope-from johan@stromnet.se) Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 33D4F381B7; Thu, 20 Sep 2007 14:26:35 +0200 (CEST) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 09338381B7; Thu, 20 Sep 2007 14:26:35 +0200 (CEST) Received: from phomca.stromnet.se (90-224-172-102-no129.tbcn.telia.com [90.224.172.102]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id AA87637E45; Thu, 20 Sep 2007 14:26:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by phomca.stromnet.se (Postfix) with ESMTP id 55BB6BAF3; Thu, 20 Sep 2007 14:26:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at stromnet.se Received: from phomca.stromnet.se ([127.0.0.1]) by localhost (phomca.stromnet.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K0VY8YPGjdG9; Thu, 20 Sep 2007 14:26:33 +0200 (CEST) Received: from [IPv6:2001:16d8:ff20:1:217:f2ff:fef0:d6b7] (unknown [IPv6:2001:16d8:ff20:1:217:f2ff:fef0:d6b7]) by phomca.stromnet.se (Postfix) with ESMTP id 11C63BAEF; Thu, 20 Sep 2007 14:26:33 +0200 (CEST) In-Reply-To: <86y7f1ofgo.fsf@ds4.des.no> References: <86y7f1ofgo.fsf@ds4.des.no> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <93AE0860-0FF6-47C7-ACFC-D882D13EC7DB@stromnet.se> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Johan_Str=F6m?= Date: Thu, 20 Sep 2007 14:26:25 +0200 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.752.3) 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 22:44:50 -0000 On Sep 20, 2007, at 11:26 , Dag-Erling Sm=F8rgrav wrote: > Johan Str=F6m 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