From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 09:54:39 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 40B7C1065690 for ; Tue, 7 Oct 2008 09:54:39 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by mx1.freebsd.org (Postfix) with ESMTP id 265A58FC2F for ; Tue, 7 Oct 2008 09:54:38 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id Plr81a0040x6nqcA8lueEt; Tue, 07 Oct 2008 09:54:38 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA12.emeryville.ca.mail.comcast.net with comcast id Plud1a00C2P6wsM8Yludtc; Tue, 07 Oct 2008 09:54:38 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=9w9dPWS7souVcgkvpswA:9 a=nygssWo_uMaonOaRRwgGLyu0xsMA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 610B7C9419; Tue, 7 Oct 2008 02:54:37 -0700 (PDT) Date: Tue, 7 Oct 2008 02:54:37 -0700 From: Jeremy Chadwick To: lhmwzy Message-ID: <20081007095437.GA44716@icarus.home.lan> References: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: pjd@freebsd.org, 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 09:54:39 -0000 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" > > #zfs get all pool/lhm > zfs get all pool/lhm > [ttyp0][5:22:12pm] > NAME PROPERTY VALUE SOURCE > pool/lhm type filesystem - > pool/lhm creation Tue Oct 7 17:14 2008 - > pool/lhm used 1.00M - > pool/lhm available 0 - > pool/lhm referenced 1.00M - > pool/lhm compressratio 7.25x - > pool/lhm mounted yes - > pool/lhm quota 1M local > pool/lhm reservation none default > pool/lhm recordsize 128K default > > But I cp 10 files,per file size is 2.4M to pool/lhm > #ll -h /pool/lhm > total 1013 > -rw------- 1 root wheel 2.4M Oct 7 17:18 d > -rw------- 1 root wheel 2.4M Oct 7 17:19 dd > -rw------- 1 root wheel 2.4M Oct 7 17:19 ddd > -rw------- 1 root wheel 2.4M Oct 7 17:19 dddd > -rw------- 1 root wheel 2.4M Oct 7 17:19 ddddd > -rw------- 1 root wheel 2.4M Oct 7 17:19 dddddd > -rw------- 1 root wheel 2.4M Oct 7 17:19 dddddd2 > -rw------- 1 root wheel 2.4M Oct 7 17:19 dddddd24 > -rw------- 1 root wheel 2.1M Oct 7 17:19 dddddd247 > -rw------- 1 root wheel 2.4M Oct 7 17:18 kldstat.core > > #du -hs /pool/lhm > 1.0M . > > I am puzzled,the what's zfs quota mean? > I understand is file quota,that can't put files which total size larger than 1M. > But it seems my understanding is wrong. > Anybody give a idea? 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. -- | 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 |