From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 10:13:00 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68091065686 for ; Tue, 7 Oct 2008 10:13:00 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id CA8C58FC0A for ; Tue, 7 Oct 2008 10:13:00 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id PmCM1a00E0QkzPwA2mD04A; Tue, 07 Oct 2008 10:13:00 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA02.emeryville.ca.mail.comcast.net with comcast id PmCz1a0032P6wsM8NmCzpq; Tue, 07 Oct 2008 10:13:00 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=bl27o_-Y0L_tu4Lpf3wA:9 a=opKRgQNkcYQYDSfWyBFMNeZbUjoA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 29A04C9419; Tue, 7 Oct 2008 03:12:59 -0700 (PDT) Date: Tue, 7 Oct 2008 03:12:59 -0700 From: Jeremy Chadwick To: Holger Kipp Message-ID: <20081007101259.GA45900@icarus.home.lan> References: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> <20081007095437.GA44716@icarus.home.lan> <20081007100726.GB19896@intserv.int1.b.intern> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081007100726.GB19896@intserv.int1.b.intern> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: pjd@freebsd.org, lhmwzy , freebsd-stable@freebsd.org Subject: Re: zfs quota question X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 10:13:01 -0000 On Tue, Oct 07, 2008 at 12:07:26PM +0200, Holger Kipp wrote: > On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote: > > On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote: > > > I create a zfs volume pool/lhm and give it quota 1M use "zfs set > > > quota=1m pool/lhm" > > > I can confirm and reproduce what you're seeing. > > > > Based on all of the ZFS documentation and examples I've read, it appears > > to be a bug in FreeBSD ZFS. > > > > CC'ing pjd@, who maintains ZFS on FreeBSD. > > I can't confirm this on a recent 7-STABLE (yesterday): > > intserv2# zfs set quota=1m tank/test > intserv2# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/ > cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded Interesting. The system I'm testing on: FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 Can you provide the output from "zfs get all tank tank/test"? Below are mine. Note that for the testing, I set the quota on storage/home to 4G, and did "dd if=/dev/zero of=/home/filler bs=1g count=8". I've since set the quota back to 16G. NAME PROPERTY VALUE SOURCE storage type filesystem - storage creation Wed Sep 24 17:47 2008 - storage used 181G - storage available 1.16T - storage referenced 180G - storage compressratio 1.02x - storage mounted yes - storage quota none default storage reservation none default storage recordsize 128K default storage mountpoint /storage default storage sharenfs off default storage checksum on default storage compression on local storage atime on local storage devices on default storage exec on default storage setuid on default storage readonly off default storage jailed off default storage snapdir hidden default storage aclmode groupmask default storage aclinherit secure default storage canmount on default storage shareiscsi off default storage xattr off temporary storage copies 1 default storage/home type filesystem - storage/home creation Wed Sep 24 20:26 2008 - storage/home used 944M - storage/home available 14.1G - storage/home referenced 944M - storage/home compressratio 1.25x - storage/home mounted yes - storage/home quota 15G local storage/home reservation none default storage/home recordsize 128K default storage/home mountpoint /home local storage/home sharenfs off default storage/home checksum on default storage/home compression on inherited from storage storage/home atime on inherited from storage storage/home devices on default storage/home exec on default storage/home setuid on default storage/home readonly off default storage/home jailed off default storage/home snapdir hidden default storage/home aclmode groupmask default storage/home aclinherit secure default storage/home canmount on default storage/home shareiscsi off default storage/home xattr off temporary storage/home copies 1 default Filesystem Size Used Avail Capacity Mounted on storage 1.3T 180G 1.2T 13% /storage storage/home 15G 944M 14G 6% /home -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |