From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2NALKJNgXGA72AAAgWs5BA (envelope-from ) for ; Thu, 25 Mar 2021 11:06:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kLOYI5NgXGDzHAAAbx9fmQ (envelope-from ) for ; Thu, 25 Mar 2021 10:06:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D5F7218DB5 for ; Thu, 25 Mar 2021 11:06:10 +0100 (CET) Received: from localhost ([::1]:40778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPMsT-0007ts-Jg for larch@yhetil.org; Thu, 25 Mar 2021 06:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPMsM-0007te-9F for bug-guix@gnu.org; Thu, 25 Mar 2021 06:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPMsM-0007IG-18 for bug-guix@gnu.org; Thu, 25 Mar 2021 06:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPMsL-0008ES-QN for bug-guix@gnu.org; Thu, 25 Mar 2021 06:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47379: "statfs" test in tests/syscall.scm fails with BTRFS file systems. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Mar 2021 10:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47379 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 47379-submit@debbugs.gnu.org id=B47379.161666670831567 (code B ref 47379); Thu, 25 Mar 2021 10:06:01 +0000 Received: (at 47379) by debbugs.gnu.org; 25 Mar 2021 10:05:08 +0000 Received: from localhost ([127.0.0.1]:37189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPMrU-0008D4-0o for submit@debbugs.gnu.org; Thu, 25 Mar 2021 06:05:08 -0400 Received: from flashner.co.il ([178.62.234.194]:41266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPMrS-0008CW-CM for 47379@debbugs.gnu.org; Thu, 25 Mar 2021 06:05:06 -0400 Received: from localhost (unknown [31.210.177.71]) by flashner.co.il (Postfix) with ESMTPSA id E186A40311; Thu, 25 Mar 2021 10:04:59 +0000 (UTC) Date: Thu, 25 Mar 2021 12:04:10 +0200 From: Efraim Flashner Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wjR5p3rYDWoO9f6z" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47379@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616666771; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=MOd5X4vOCjvJwqnO9TF/6szG/D4YtdGZe/OrBINu94k=; b=nG7WAfBScrr0w8Ro4CuwNEnWI6g2w9mha+LauHXGN60m1yiV/28MyFUXO0qXFx1mvHikbG DvpqFjeReGFFZJQJi46bD4cLnFpVB8gGQDH6GBeZBbL4TPSqeOrvwU6HCZeTBHytmRxgYW VHHk1tLLs4VaCAO+eiaE5WXHFMv+Dm+e5JpGl11KNXN+Y/TAigIIQeOnsABSSe4UWqMSNh ge5xKIXHEbR9Is04m9NRV3qfWHqcnNB0JW+RYkO0Jy7M//EEN5BjvIKcUTU6mfc5OJZJrg Ht/g5G9HiGvK9diOC2eMcC91juG1Tk0SBSlDm5822u4kB6dd54dwIIHVbMdFVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616666771; a=rsa-sha256; cv=none; b=ZdGN9Ii0Jzeb62bo8BBODHG/OGbpIX/goUMPOheTeR3vILbwKAHPHlAiw38IjmCwoectSn iWHenKHw9Q7ZyaCvIQgiywFw9sLm50rO6dHZogEQM3vRCiUhBU7YI8wDs8h4T8zXVHSVxT c99pqwFFGcmz298ydCozh+cKEPQCsWs53XzCxy1TB1j36unV593Je5UHSMt3W+AgH4/AUq AFL7GNt5za0o7W3ebx/E+OZh9HRkdDP5DK/5lYfZHDoAdjZqCWUfvYd/8IvajVRyXP7PDU 3saf0gDAfAaIT86Nh9/0fYRJ2vXa6JsoLq4kdYL801ppXHp/UeHPS2jQ+mtAag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: D5F7218DB5 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: oxI40LgX7lUt --wjR5p3rYDWoO9f6z Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 25, 2021 at 09:49:08AM +0100, Maxime Devos wrote: > Hi Guix, >=20 > Version: > guix (GNU Guix) 1155a88308df7649fe74bd5bb8279a4d103ce386 >=20 > The following test fails: >=20 > (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) >=20 > Evaluating (statfs "/") from a REPL gives: >=20 > scheme@(guix-user)> ((@ (guix build syscalls) statfs) "/") > $2 =3D #< type: 2435016766 block-size: 4096 blocks: 24418969= 6 blocks-free: 178549974 blocks-available: 178571318 files: 0 free- > files: 0 identifier: (1111009624 2088757363) name-length: 255 fragment-si= ze: 4096 mount-flags: 1056 spare: (0 0 0 0)> >=20 > It seems the following does not hold on my system: > + (>=3D (file-system-blocks-free fs) > + (file-system-blocks-available fs)) >=20 I'm also running on btrfs (ins)scheme@(guile-user)> (statfs "/") $1 =3D #< type: 2435016766 block-size: 4096 blocks: 244049664 = blocks-free: 165299045 blocks-available: 165178857 files: 0 free-files: 0 i= dentifier: (2930232877 3283401406) name-length: 255 fragment-size: 4096 mount-flags: 4= 128 spare: (0 0 0 0)> (cmd)scheme@(guile-user)> (>=3D (file-system-blocks-free (statfs "/")) (fil= e-system-blocks-available (statfs "/"))) $5 =3D #t (ins)efraim@3900XT ~$ btrfs filesystem df / Data, single: total=3D289.00GiB, used=3D287.83GiB System, single: total=3D32.00MiB, used=3D48.00KiB Metadata, single: total=3D13.00GiB, used=3D12.07GiB GlobalReserve, single: total=3D512.00MiB, used=3D0.00B When was the last time you ran btrfs balance? Regardless, we still want this test to pass on btrfs. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --wjR5p3rYDWoO9f6z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBcYBgACgkQQarn3Mo9 g1GMLA/8CfhXkwVDCGKDoQtLtHSxhLRKrqhobOx63wfhExAGQo/QYPryl2BkuUmC Q1Wn+M5MNGOS2kkobD/ViN/8Cl01omg6y53FttWV5oxvWeh4/NufZCq0yEGoHxNj T7bHuRm3r0/fqS5dDiZS/vJE1sFeFiDtrDLfO6GUyLG5q8xw8MU3RqRSdiZlKXXk 5tXEJt2QP646XoydefW/8bv2yzEH4TYjyyhO+/ptM1NYh7ddcy8PvP0jiJPX4WCJ 1PNFyIsmdJ5ZPGLGBbuWL8OwGVtK+KY/nw/CEgajHUGo8tSOOG0dFDAYgAD9VF2U qgS70KkCxQ1dG5HXrlLCiosUGwnHBasbgrme/h0OnPQXNd5jnVetgXx0EcqbW5GQ eAGjkrMfqj+p2X5NINazK8T/V12O0OH64gy5XOXnq41gn6KChMaIvcLXTJVkD1FO D663kv4QOa+Zcybze1KZYiLZE4R8Ml6XqGfKkDuEFChAa0HyET7usj1A+BlqvQH/ JZpClrdKFbaf9H7A7X3a3fD/kSq6LzQPXnFmo2xA5acywSvS1vR7Y6ynulX5ZiLR oAdPJ3lSNXcPvEDB5AnhZNYrZHA5wBSDSOAAO9wIBTkLSdF4E1lYXwqstR4aU+Zn DBIbH8WCw/2U+I+CBrniM/mNOPWnu2zwC3gHvDIweOY3ZdPPPM0= =nU7F -----END PGP SIGNATURE----- --wjR5p3rYDWoO9f6z--