From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 4EDF18D1C for ; Tue, 7 Mar 2023 10:16:24 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 287A09D06 for ; Tue, 7 Mar 2023 10:15:54 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 7 Mar 2023 10:15:53 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 3865B453E5 for ; Tue, 7 Mar 2023 10:15:53 +0100 (CET) Message-ID: Date: Tue, 7 Mar 2023 10:15:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: =?UTF-8?Q?Fabian_Gr=c3=bcnbichler?= , Christian Ebner , Proxmox VE development discussion References: <20230306130752.1112199-1-c.ebner@proxmox.com> <638f7412-b51b-6580-5f9d-3b3259bd404b@proxmox.com> <1678178711.44w60pfavx.astroid@yuna.none> From: Fiona Ebner In-Reply-To: <1678178711.44w60pfavx.astroid@yuna.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.003 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.001 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH v2 storage] api: fix get content call for volumes X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2023 09:16:24 -0000 Am 07.03.23 um 09:51 schrieb Fabian Grünbichler: > On March 7, 2023 9:31 am, Fiona Ebner wrote: > > unfortunately not the case - a zvol can take up (significantly) more space than > volsize: > > $ zpool get ashift testpool > NAME PROPERTY VALUE SOURCE > testpool ashift 12 local > $ zfs get volsize,volblocksize,space testpool/test > NAME PROPERTY VALUE SOURCE > testpool/test volsize 5G local > testpool/test volblocksize 8K default > testpool/test name testpool/test - > testpool/test available 11.2G - > testpool/test used 7.43G - > testpool/test usedbysnapshots 0B - > testpool/test usedbydataset 7.32G - > testpool/test usedbyrefreservation 111M - > testpool/test usedbychildren 0B - > > this is the common "ashift=12 / volblocksize=8 / raidz2" pitfall.. Oh, right. Well, I'd say usedbydataset is still more consistent with the current values for $used and I guess it's technically true even if $used > $size.