From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33D42C04AA5 for ; Mon, 15 Oct 2018 14:26:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF7E320644 for ; Mon, 15 Oct 2018 14:26:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF7E320644 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=carfax.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-btrfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726698AbeJOWMO (ORCPT ); Mon, 15 Oct 2018 18:12:14 -0400 Received: from frost.carfax.org.uk ([85.119.82.111]:54947 "EHLO frost.carfax.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbeJOWMO (ORCPT ); Mon, 15 Oct 2018 18:12:14 -0400 Received: from hrm by frost.carfax.org.uk with local (Exim 4.80) (envelope-from ) id 1gC3pR-0002IQ-Vn; Mon, 15 Oct 2018 14:26:41 +0000 Date: Mon, 15 Oct 2018 14:26:41 +0000 From: Hugo Mills To: Anton Shepelev Cc: linux-btrfs@vger.kernel.org Subject: Re: Interpreting `btrfs filesystem show' Message-ID: <20181015142641.GD9538@carfax.org.uk> Mail-Followup-To: Hugo Mills , Anton Shepelev , linux-btrfs@vger.kernel.org References: <20181015172408.1b3867debea3951fb7014ee4@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zS7rBR6csb6tI2e1" Content-Disposition: inline In-Reply-To: <20181015172408.1b3867debea3951fb7014ee4@gmail.com> X-GPG-Fingerprint: DD84 D558 9D81 DDEE 930D 2054 585E 1475 E2AB 1DE4 X-GPG-Key: E2AB1DE4 X-Parrot: It is no more. It has joined the choir invisible. X-IRC-Nicks: darksatanic darkersatanic darkling darkthing User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org --zS7rBR6csb6tI2e1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 15, 2018 at 05:24:08PM +0300, Anton Shepelev wrote: > Hello, all > > While trying to resolve free space problems, and found that > I cannot interpret the output of: > > > btrfs filesystem show > > Label: none uuid: 8971ce5b-71d9-4e46-ab25-ca37485784c8 > Total devices 1 FS bytes used 34.06GiB > devid 1 size 40.00GiB used 37.82GiB path /dev/sda2 > > How come the total used value is less than the value listed > for the only device? "Used" on the device is the mount of space allocated. "Used" on the FS is the total amount of actual data and metadata in that allocation. You will also need to look at the output of "btrfs fi df" to see the breakdown of the 37.82 GiB into data, metadata and currently unused. See https://btrfs.wiki.kernel.org/index.php/FAQ#Understanding_free_space.2C_using_the_original_tools for the details. Hugo. -- Hugo Mills | "Your problem is that you have a negative hugo@... carfax.org.uk | personality." http://carfax.org.uk/ | "No, I don't!" PGP: E2AB1DE4 | Londo and Vir, Babylon 5 --zS7rBR6csb6tI2e1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJbxKOhAAoJEFheFHXiqx3kR3UP/3ZIG5/OTSK6GveMiA6UReNi +g318Fbe3zbP9dCydIxpdgmCP7u95kzQmzomv3E93252P0QcyPvrpBGvkU15Hrt8 LuUSw6yn7ucz7oVRhshZX8L0SaTElk/erfSrGpWYYE0kndr0gB2ji1rE3qRgKPuE tLfpP+uM2Nb0q9qmrAVr5ZSV01M7mi4drHFd2R3nzgU1rZGe3sxHhy10pYC/9m7N KrcOwBwabmHlO9mWdFIDP+FaEzFW2qEOrr4n/jM48YCSWmJYHXUCP34Sprdyh3LH 86mfMiR0P1vOKWeFt1QJxXKokqMPIM7T8J8rsCWpGZuvpL6s2XmEz5EtWPOst3Ax IwxLmeeNN5VSHo7u+QUzyyxne+j1efzRP1KfSqiKuzaWfFqOdhetZAuBifmxcGPO jrgSKRyYIvK990ewkCZe2KPoMbIwfKN5/28/8ax8a/E9KlzIgODEs4VCCmLLLxCw bLYa8RvIEXdffdmKkvi0/GZhC70wI8Ca2KHMw02sjlzdMxwhh1P6HgjhFoPwwbbB tDeF7BVKoQOJV61dU1n8B0vsttpX2AmqWl96jPGDdSQzG/dKV1fFUvswR0Rzttos 7OgFNPXQlZyGJCYaVWkOW07ItEz7CDN8bVIC+ObmuPCv8gUpLcFE0aiO3fl2/Gse pwpbMGCGjasSEv3qEJsC =CYLe -----END PGP SIGNATURE----- --zS7rBR6csb6tI2e1--