From owner-freebsd-fs@FreeBSD.ORG Fri Sep 21 06:57:18 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 4DA6016A494 for ; Fri, 21 Sep 2007 06:57:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id E5D5413C45A for ; Fri, 21 Sep 2007 06:57:17 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 242E645CD9; Thu, 20 Sep 2007 13:57:49 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5627C45683; Thu, 20 Sep 2007 13:57:45 +0200 (CEST) Date: Thu, 20 Sep 2007 13:56:21 +0200 From: Pawel Jakub Dawidek To: Johan =?iso-8859-1?Q?Str=F6m?= Message-ID: <20070920115621.GF4517@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jt0yj30bxbg11sci" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 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: Fri, 21 Sep 2007 06:57:18 -0000 --jt0yj30bxbg11sci Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 20, 2007 at 12:31:56AM +0200, Johan Str=F6m wrote: > Hello >=20 > I just installed FreeBSD-current on a box (actually upgraded 6.2 to -=20 > current) to experiment a bit. > I was playing around with ZFS a bit and tried out the quota features. =20 > While doing this I noticed that it doesnt seem like you get a "disk =20 > full" notice the same way as you do on a "normal" (UFS) filesystem. =20 > Instead of aborting the operation with "No space left on device" it =20 > 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 >=20 > No hard stop there, it just tries to write more and more and more.. =20 > Well the quota is enforced fine but shouldnt there be some more hard =20 > error? I'm not sure how regular UFS quotas work though since I never =20 > used them, but this seems like strange behaviour. Hmm, seems to work just fine here: beast:root:~# zfs create tank/foo beast:root:~# zfs set quota=3D10m tank/foo beast:root:~# dd if=3D/dev/random of=3D/tank/foo/test bs=3D1m dd: /tank/foo/test: Disc quota exceeded 11+0 records in 10+0 records out 10485760 bytes transferred in 6.109407 secs (1716330 bytes/sec) beast:root:~# df -h /tank/foo Filesystem Size Used Avail Capacity Mounted on tank/foo 10M 10M 0B 100% /tank/foo I think you just waited not long enough:) You didn't give block size argument to dd(1), so it used 512 bytes. Please be more patient, retry and report back, thanks! --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --jt0yj30bxbg11sci Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG8l/lForvXbEpPzQRAnKoAKCJw4sN4Zp84e2WcJESOpcP9VS1qwCfYm0O Vnl2pgGkuUinVIDnD+IGkvI= =O01/ -----END PGP SIGNATURE----- --jt0yj30bxbg11sci--