Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933392AbbI3LgE (ORCPT ); Wed, 30 Sep 2015 07:36:04 -0400 Received: from tschil.ethgen.ch ([5.9.7.51]:50452 "EHLO tschil.ethgen.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932089AbbI3Lf7 (ORCPT ); Wed, 30 Sep 2015 07:35:59 -0400 X-Greylist: delayed 1854 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Sep 2015 07:35:59 EDT Date: Wed, 30 Sep 2015 12:05:03 +0100 From: Klaus Ethgen To: linux-kernel@vger.kernel.org Subject: BTRFS: more space available than free Message-ID: <20150930110502.GB24990@ikki.ethgen.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; x-action=pgp-signed OpenPGP: id=79D0B06F4E20AF1C; url=http://www.ethgen.ch/~klaus/79D0B06F4E20AF1C.txt; preference=signencrypt User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, currently, I suffer of a weird problem with a btrfs filesystem: ~> uname -r 4.0.9 ~> stat -f / File: "/" ID: a446833a80ceeb6a Namelen: 255 Type: btrfs Block size: 4096 Fundamental block size: 4096 Blocks: Total: 128472 Free: 41964 Available: 42981 Inodes: Total: 0 Free: 0 As you can see, f_bavail is slightly bigger than f_bfree. As I understand the values, f_bavail should be never bigger than f_bfree. Currently that breaks check_disk from nagios. How can that happening? I found a thread about some try to make f_bavail more accurate in 2014 but nothing about f_bfree. What I didn't try until now, is, if that problem also happened with the most recent kernel version but this will be my next step. Please forgive that I don't read lkml regularly. Please keep me in Cc for this reason. Regards Klaus - -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQGcBAEBCgAGBQJWC8HFAAoJEKZ8CrGAGfasHg8L/jaNUulWoIYeodKUGTtPwOIX dpuK7aP+768oBafnFCHpgwyxllZbEZh2Dqsw9tcwleWnQMEo5EWFj2mkr1FPZcX/ qj8JBugSec/UzFevNZdug69KunWuVMyWkzQHVVqrkwtpEGOGk/mr9uhHse25xwPY G13Xd21Ea5E3oCm4drKEN0z3QEIbcNXmy+LN4wprxZXu1QKEa/VssgxRrrxW6gN1 dtjXjgtZpTgLJ5D298Sz4/AelR/U0tW3VHZIQRswtn5AgiKA4dKIIiE2N0qx3USu 1foXkchoyOOnIB9n3gc+uYxtRacublvggfY8Md+3e/+CGLHEhMQnwWVCrVBHxwJV zRSGKH7xUqbpPlC1SrvuEu0V1ZmAvUTorS1pTEGbVjwlpmkgRXlE+MwV6F0jMoWM 9zsaR/ZjB+Irj03qAs0XezYjeU8wHrnjKZAVBofho1tZqgOmwI03L0e0nGISP8K4 Fni9gX5nga+jwbOJn/NyOAhfc8Ev8kc3+aUllgQKsQ== =3Wky -----END PGP SIGNATURE-----