From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 25 04:49:53 2021 Received: (at submit) by debbugs.gnu.org; 25 Mar 2021 08:49:53 +0000 Received: from localhost ([127.0.0.1]:37092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPLgf-00044h-1g for submit@debbugs.gnu.org; Thu, 25 Mar 2021 04:49:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:49442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPLgd-00044Z-7M for submit@debbugs.gnu.org; Thu, 25 Mar 2021 04:49:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPLga-00071Q-ST for bug-guix@gnu.org; Thu, 25 Mar 2021 04:49:48 -0400 Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]:49492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPLgO-0005fB-IA for bug-guix@gnu.org; Thu, 25 Mar 2021 04:49:48 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id kYpU2400B0mfAB401YpUF5; Thu, 25 Mar 2021 09:49:28 +0100 Message-ID: Subject: "statfs" test in tests/syscall.scm fails with BTRFS file systems. From: Maxime Devos To: bug-guix@gnu.org Date: Thu, 25 Mar 2021 09:49:08 +0100 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-/Z7w7HBDKVLRbO9DQiY1" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1616662168; bh=y9qFR8o4ZuVsZ7PTOQ2wAvK9r5QpLWc7HfdW1pyvkIM=; h=Subject:From:To:Date; b=GK4JZMaszVd1yYNYtxHeVQas6ui34Oh4xEGFbEXhQgUEEOYDap0oaw+1lvlCp2YB4 UU/pD280zbo5CMshf5t7Jf+HR6fbCpc19Ng+UCyDLUtaRi8WdU4JSdolNgdzTLoceM c1afpL8LGjoxQPIiiGKdOLbHDn1ErxXJbhd4Ba5hTpq7RRRLbE3vgd2KlfowkNnD/l FPix3L5RieQcDf0Idg0JSj8iPEDYMernfK/bZ1US4IjpVyZ8bWR5xbQWTQxwxRnCMN d91742rv0d8xABmFdOPTPByiNQ7D3E9P0gJtgVpx3aWZ3hRBdlOQ2yrZqnpDv4hnpL CXWSXrkP7zydQ== Received-SPF: pass client-ip=2a02:1800:110:4::f00:19; envelope-from=maximedevos@telenet.be; helo=laurent.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-/Z7w7HBDKVLRbO9DQiY1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Guix, Version: guix (GNU Guix) 1155a88308df7649fe74bd5bb8279a4d103ce386 The following test fails: (start snip) test-name: statfs location: $HOME/guix/git/guix/tests/syscalls.scm:123 source: + (test-assert + "statfs" + (let ((fs (statfs "/"))) + (and (file-system? fs) + (> (file-system-block-size fs) 0) + (>=3D (file-system-blocks-available fs) 0) + (>=3D (file-system-blocks-free fs) + (file-system-blocks-available fs))))) actual-value: #f result: FAIL (end snip) Evaluating (statfs "/") from a REPL gives: scheme@(guix-user)> ((@ (guix build syscalls) statfs) "/") $2 =3D #< type: 2435016766 block-size: 4096 blocks: 244189696 = blocks-free: 178549974 blocks-available: 178571318 files: 0 free- files: 0 identifier: (1111009624 2088757363) name-length: 255 fragment-size= : 4096 mount-flags: 1056 spare: (0 0 0 0)> It seems the following does not hold on my system: + (>=3D (file-system-blocks-free fs) + (file-system-blocks-available fs)) Greetings, Maxime --=-/Z7w7HBDKVLRbO9DQiY1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYFxOhRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q3jAP9t1MfAlsfVdokHsacdWRJ8/sHI 1T7pLiABPG/0BlVuzgEAwfwRx/EgRSaW7vSBWVhlkD6CF0KexGBhpw1BTk7EJQQ= =BvGb -----END PGP SIGNATURE----- --=-/Z7w7HBDKVLRbO9DQiY1--