From owner-freebsd-stable@FreeBSD.ORG Tue Oct 7 09:32:44 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 E4DA91065695 for ; Tue, 7 Oct 2008 09:32:44 +0000 (UTC) (envelope-from lhmwzy@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 76EA68FC12 for ; Tue, 7 Oct 2008 09:32:44 +0000 (UTC) (envelope-from lhmwzy@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2162836fgb.35 for ; Tue, 07 Oct 2008 02:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=vfYCfqwEAACJVHnZ4OdK+5b2ublW2NuH+OQszijrKWY=; b=UcNcomHzP+QsVst+t2fIKDoUSu28a01AvgV+rmxb3eE+1fZuez9AGLw4GtlLzlodyq r66AVAorODRH584z2wwZOg7RMJ0iONTUExTjPNIJ8zqDM5Q8iDJYysgbGEjkaEq43ZEa lvuIDUhAqtqJKyk3y0ZFhCEdVnYAjzsURftk0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=HMYoNN6bCxtjzXi+eIq5RTCPnNReoi+GDtEb9RX2gJtzIRc0V5e8qkEto1i9i5z2cz 6RoP8VkcicOF9M8Ehb1wLtbGMW4724gWPzV+eG39nNZ+DLoUNUqMwVDFvTp0HleRpQAn onSNghEkPL/mG4L5bELqn0n/qztjsp3rTklxI= Received: by 10.86.63.19 with SMTP id l19mr5623269fga.60.1223371963110; Tue, 07 Oct 2008 02:32:43 -0700 (PDT) Received: by 10.86.25.10 with HTTP; Tue, 7 Oct 2008 02:32:43 -0700 (PDT) Message-ID: <78fb9d960810070232u3f35010dv510dfa0fb2285568@mail.gmail.com> Date: Tue, 7 Oct 2008 17:32:43 +0800 From: lhmwzy To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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:32:45 -0000 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?