From: Maxime Devos <maximedevos@telenet.be>
To: 47379@debbugs.gnu.org
Subject: bug#47379: "statfs" test in tests/syscall.scm fails with BTRFS file systems.
Date: Thu, 25 Mar 2021 09:49:08 +0100 [thread overview]
Message-ID: <c6bbf5ce384c68f46cd473da3af716e95788b3d4.camel@telenet.be> (raw)
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
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)
+ (>= (file-system-blocks-available fs) 0)
+ (>= (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 = #<<file-system> 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:
+ (>= (file-system-blocks-free fs)
+ (file-system-blocks-available fs))
Greetings, Maxime
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next reply other threads:[~2021-03-25 8:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 8:49 Maxime Devos [this message]
2021-03-25 10:04 ` bug#47379: "statfs" test in tests/syscall.scm fails with BTRFS file systems Efraim Flashner
2021-03-25 10:16 ` Maxime Devos
2021-03-25 10:25 ` Efraim Flashner
2021-03-26 12:22 ` raid5atemyhomework via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c6bbf5ce384c68f46cd473da3af716e95788b3d4.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=47379@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).