From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 10:10:02 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 5C7121065690 for ; Tue, 7 Oct 2008 10:10:02 +0000 (UTC) (envelope-from hk@alogis.com) Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by mx1.freebsd.org (Postfix) with ESMTP id EAC638FC15 for ; Tue, 7 Oct 2008 10:10:01 +0000 (UTC) (envelope-from hk@alogis.com) Received: from alogis.com (localhost [127.0.0.1]) by alogis.com (8.13.4/8.13.1) with ESMTP id m979xPIB020106; Tue, 7 Oct 2008 11:59:25 +0200 (CEST) (envelope-from hk@alogis.com) Received: (from hk@localhost) by alogis.com (8.13.4/8.13.1/Submit) id m979xPYW020105; Tue, 7 Oct 2008 11:59:25 +0200 (CEST) (envelope-from hk) Date: Tue, 7 Oct 2008 11:59:25 +0200 From: Holger Kipp To: lhmwzy Message-ID: <20081007095925.GA19896@intserv.int1.b.intern> 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.4.2.1i Cc: 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:10:02 -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" according to zfs manpage: Quotas cannot be set on volumes, as the "volsize" property acts as an implicit quota. Aditionally, I see you're using compression, so a 2.4M file might not use up that much space. Compressration 7.25x > #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 If you find this answer helpful, donate money to some children help fund :-) Regards, Holger Kipp