From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Nov 2019 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 38435@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15751215852734 (code B ref -1); Sat, 30 Nov 2019 13:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2019 13:46:25 +0000 Received: from localhost ([127.0.0.1]:33842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib34q-0000i2-J6 for submit@debbugs.gnu.org; Sat, 30 Nov 2019 08:46:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:52171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib34o-0000hu-Gi for submit@debbugs.gnu.org; Sat, 30 Nov 2019 08:46:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38014) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ib34m-0002Mc-Ap for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:22 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ib34k-0008TA-KR for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:20 -0500 Received: from mx1.riseup.net ([198.252.153.129]:38660) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ib34k-0008S1-7a for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:18 -0500 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47QCM34GcwzFcF9 for ; Sat, 30 Nov 2019 05:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575121575; bh=cxU9TOZeW54BPeTrkHhqx0h4wJmKUvrmOB4SwmXFcvY=; h=Date:From:To:Subject:From; b=HI+rcMlevlK6dS2TpcAYTht2OiYY8HDe2+O+gK+3QWr31xvv7NiHiCg5K7H2OUHo5 Ne7gm6G7cfeMBj/pbzMwkmYC56+UoFKn5Qbr9bbkqhw7cCVsBaa9IjlfuWBhT4NMTl otqUhkHxY6qEmcNtf1ESUtFgauwB+n/lsdLvul6o= X-Riseup-User-ID: 25D8C0FA5E8BDF769107C2BDA0D789DA07611158B2F01D0ADA7CFD47074F930B Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 47QCM30mrTz8tJj for ; Sat, 30 Nov 2019 05:45:50 -0800 (PST) Date: Sat, 30 Nov 2019 14:45:39 +0100 From: raingloom Message-ID: <20191130144539.218179f0@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.252.153.129 X-Spam-Score: -1.4 (-) 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.4 (--) This is what I get after a recent `guix system reconfigure` : Scanning for Btrfs filesystems [ 2.342790] BTRFS error (device sda1): open_ctree failed Previous profiles work, I haven't modified anything about my config.scm between them. Full output from kernel (taken by booting it from QEMU and redirecting ttyS0 to stdio): ``` qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -hda /dev/sda -m 1G -serial stdio WARNING: Image format was not specified for '/dev/sda' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat Welcome, this is GNU's early boot Guile. Use '--repl' for an initrd REPL. loading kernel modules... Scanning for Btrfs filesystems [ 2.342790] BTRFS error (device sda1): open_ctree failed ERROR: In procedure mount: In procedure mount: Invalid argument Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 2.2.6 Copyright (C) 1995-2019 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,bt In gnu/build/linux-boot.scm: 533:14 2 (_) 387:8 1 (mount-root-file-system _ _ #:volatile-root? _ #:options =E2= =80=A6) In unknown file: 0 (mount "/dev/sda1" "/root" "btrfs" 0 "lazytime,compress") scheme@(guile-user)> ,q =20 [ 42.345826] Kernel panic - not syncing: Attempted to kill init! ``` (rest of stack trace snipped for brevity's sake) output of `guix describe` as root: ``` Generation 26 Nov 29 2019 21:22:41 (current) nonguix 2df6923 repository URL: https://gitlab.com/nonguix/nonguix.git branch: master commit: 2df692312100ac5bea9ed8e8bf0032e6db100e91 guix dac7928 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: dac7928d502d9ba4fc6a9621e5b2b15019d92d5b ``` Contents of /etc/profile.scm: ``` (define use-proprietary-crap? #f) (use-modules (gnu) (gnu system nss) (gnu packages shells) (gnu packages package-management) (gnu packages gnome)) (if use-proprietary-crap? (use-modules (nongnu packages linux)) (use-modules (gnu packages linux))) (use-service-modules desktop ssh nix) (use-package-modules bootloaders certs ratpoison suckless wm) (operating-system (host-name "bingobongo") (timezone "Europe/Budapest") (locale "en_US.utf8") (kernel (if use-proprietary-crap? linux linux-libre)) (firmware (append (if use-proprietary-crap? (list iwlwifi-firmware) '()) %base-firmware)) ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) ;; Assume the target root file system is labelled "my-root", ;; and the EFI System Partition has UUID 1234-ABCD. (file-systems (cons* (file-system (device (file-system-label "GUIX")) (mount-point "/") (options "lazytime,compress") (type "btrfs")) ;(file-system ; (device (uuid "1234-ABCD" 'fat)) ; (mount-point "/boot/efi") ; (type "vfat")) %base-file-systems)) (users (append (list (user-account (name "raingloom") (comment "your friendly localhost admin") (group "users") (shell "/run/current-system/profile/bin/zsh") (supplementary-groups '("wheel" "netdev" "audio" "video" "kvm")) (home-directory "/home/raingloom"))) %base-user-accounts)) ;; Add a bunch of window managers; we can choose one at ;; the log-in screen with F1. (packages (cons* i3-wm i3status dmenu ;window managers nss-certs ;for HTTPS access zsh ;nicer login shell gvfs nix gnome orca %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with NetworkManager, and more. (services (append (list (service nix-service-type) (service openssh-service-type (openssh-configuration (x11-forwarding? #t)))) (modify-services %desktop-services (elogind-service-type config =3D> (elogind-configuration (inherit config) (handle-lid-switch 'ignore)))))) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) ``` From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Nov 2019 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 38435@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Cc: 38435@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157512560710176 (code B ref -1); Sat, 30 Nov 2019 14:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2019 14:53:27 +0000 Received: from localhost ([127.0.0.1]:33873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib47j-0002e4-2V for submit@debbugs.gnu.org; Sat, 30 Nov 2019 09:53:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:32884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib47f-0002dp-Vo for submit@debbugs.gnu.org; Sat, 30 Nov 2019 09:53:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47782) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ib47d-0006bc-5O for bug-guix@gnu.org; Sat, 30 Nov 2019 09:53:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ib47b-0002My-IN for bug-guix@gnu.org; Sat, 30 Nov 2019 09:53:20 -0500 Received: from mout02.posteo.de ([185.67.36.66]:40813) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ib47a-0002Fe-B1 for bug-guix@gnu.org; Sat, 30 Nov 2019 09:53:19 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0760C2400FD for ; Sat, 30 Nov 2019 15:53:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575125595; bh=JGhLQwYnq6QD0n4R20x07Xnaxs60+wCDrskhlwRpx/w=; h=From:To:Cc:Subject:Date:From; b=BmkqwPV0ERfsoo5JlQNNT6wXtpHzxrupks1AvnxcjcrT54hER1ZzckcIn9cVh1GD+ 8sjsFKuMwWHbCXMXqpc7oJ3FcPWuwpz/BY1tQ5LD6U4/qrbF44uiSxjwbduSKtNF8N VZ3PN3UBZFT9gPYCsix1CgfUZMJe4mRXfcbs4QiY+7xqEDLJUwKVi5OPNThoPV5rVo 3xqfEfBonvJRiA0vnmzvrT9PpoeS7RbZTp0I7zu8cr6CCcYyI55/W8I3VqxdPEOzPs 5ktXvZnmEy+woNvSvcjbDJso79Am0/9Fa6ypG+Zhk3ddnK97pL2Plt4CEUDP3aSs5w TWOvxHEWH0VTA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47QDrm6XNPz9rxN; Sat, 30 Nov 2019 15:53:12 +0100 (CET) References: <20191130144539.218179f0@riseup.net> User-agent: mu4e 1.2.0; emacs 26.3 From: Guillaume Le Vaillant In-reply-to: <20191130144539.218179f0@riseup.net> Date: Sat, 30 Nov 2019 15:53:11 +0100 Message-ID: <87tv6lo1pk.fsf@yamatai> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-Spam-Score: -1.3 (-) 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 (--) raingloom skribis: > This is what I get after a recent `guix system reconfigure` : > Scanning for Btrfs filesystems > [ 2.342790] BTRFS error (device sda1): open_ctree failed > > Previous profiles work, I haven't modified anything about my config.scm > between them. > > [...] > > > Contents of /etc/profile.scm: > > [...] > > (file-systems (cons* (file-system > (device (file-system-label "GUIX")) > (mount-point "/") > (options "lazytime,compress") > (type "btrfs")) > ;(file-system > ; (device (uuid "1234-ABCD" 'fat)) > ; (mount-point "/boot/efi") > ; (type "vfat")) > %base-file-systems)) > I just tried adding the 'lazytime' option to my root file system, and I got the same error as you when booting. Could you try removing it and see if it works? Until recently, the options declared in 'file-system' records were always ignored when mounting the root file system. Now they are taken into consideration, and I think it reveals a bug in the way file systems are mounted. If some options like 'lazytime' or 'defaults' are declared in a 'file-system' record (root file system or not), mounting it fails. However some other options like 'compress' or 'autodefrag' work fine. I suspect Guix adds some options by default when trying to mount file systems, and maybe we end up with conflicting options or doubled options that cause problems. From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Nov 2019 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 38435@debbugs.gnu.org Cc: raingloom Received: via spool by 38435-submit@debbugs.gnu.org id=B38435.157512970717922 (code B ref 38435); Sat, 30 Nov 2019 16:02:01 +0000 Received: (at 38435) by debbugs.gnu.org; 30 Nov 2019 16:01:47 +0000 Received: from localhost ([127.0.0.1]:35109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib5Br-0004f0-AG for submit@debbugs.gnu.org; Sat, 30 Nov 2019 11:01:47 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib5Bh-0004eY-Se for 38435@debbugs.gnu.org; Sat, 30 Nov 2019 11:01:46 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E04692400FC for <38435@debbugs.gnu.org>; Sat, 30 Nov 2019 17:01:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575129680; bh=i3lJGTgf2rZYlP5CYtS8M/1nMhqFk44FlmMfRR2HtDc=; h=From:To:Cc:Subject:Date:From; b=DbUC6BD/5jtM0+sMKR3IB/wmR0PJBh2k+KPWeMOEbJavHomAhaaTzPj2KGS/Y6s37 JdtKwQfLEuvpGewBjzBeKOeT8pJby08MTYUT8+bva0V19wBrxKrQ53TkX+IusnGhmt b2ZXVZ8RzdwnDhUC5WbtqO6Bh14NHQfKA+0qDEfRKnRjF9dmTgL0HC3k1iANMoPd32 alU3O2r20FGAsHV4ugqTW2O/cPjJjV5ncg5kxpEBF3axJ7cKzG43LUDLqUPcWK75Gq nMkSFlQzYmdZdWf7CK6CHnw1ww09x6isw0EszYmTa1KcxMEdw5GK2HhaQ6qm7EwBDz +/JCqFpd5m0QQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47QGMD4kXNz9rxQ; Sat, 30 Nov 2019 17:01:12 +0100 (CET) References: <20191130144539.218179f0@riseup.net> <87tv6lo1pk.fsf@yamatai> User-agent: mu4e 1.2.0; emacs 26.3 From: Guillaume Le Vaillant In-reply-to: <87tv6lo1pk.fsf@yamatai> Date: Sat, 30 Nov 2019 17:01:08 +0100 Message-ID: <87sgm5nykb.fsf@yamatai> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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: -3.3 (---) Guillaume Le Vaillant skribis: > raingloom skribis: > >> This is what I get after a recent `guix system reconfigure` : >> Scanning for Btrfs filesystems >> [ 2.342790] BTRFS error (device sda1): open_ctree failed >> >> Previous profiles work, I haven't modified anything about my config.scm >> between them. >> >> [...] >> >> >> Contents of /etc/profile.scm: >> >> [...] >> >> (file-systems (cons* (file-system >> (device (file-system-label "GUIX")) >> (mount-point "/") >> (options "lazytime,compress") >> (type "btrfs")) >> ;(file-system >> ; (device (uuid "1234-ABCD" 'fat)) >> ; (mount-point "/boot/efi") >> ; (type "vfat")) >> %base-file-systems)) >> > > I just tried adding the 'lazytime' option to my root file system, and > I got the same error as you when booting. Could you try removing it and > see if it works? > > Until recently, the options declared in 'file-system' records were > always ignored when mounting the root file system. Now they are taken > into consideration, and I think it reveals a bug in the way file systems > are mounted. If some options like 'lazytime' or 'defaults' are declared > in a 'file-system' record (root file system or not), mounting it fails. > However some other options like 'compress' or 'autodefrag' work fine. > > I suspect Guix adds some options by default when trying to mount file > systems, and maybe we end up with conflicting options or doubled options > that cause problems. Apparently, Guix uses the 'mount' system call directly to mount file systems (c.f. 'guix/build/syscalls.scm'), and passes all the options declared in the 'file-system' records in the 'data' argument. However the man page for mount(2) indicates: --8<---------------cut here---------------start------------->8--- int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data); [...] The data argument is interpreted by the different filesystems. Typically it is a string of comma-separated options understood by this filesystem. See mount(8) for details of the options available for each filesystem type. --8<---------------cut here---------------end--------------->8--- If I understand correcly, the generic options (e.g. 'lazytime') must be passed in 'mountflags', and the options specific to the file system (e.g. 'compress') must be passed in 'data'. This would mean that before calling the 'mount' system call, we must remove the generic options from the 'options' variable (which is then passed in 'data'), and add their corresponding flags to the 'flags' variable (which is then passed in 'mountflags'). What do you think? From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 01 Dec 2019 11:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 38435@debbugs.gnu.org Received: via spool by 38435-submit@debbugs.gnu.org id=B38435.157519818311022 (code B ref 38435); Sun, 01 Dec 2019 11:04:02 +0000 Received: (at 38435) by debbugs.gnu.org; 1 Dec 2019 11:03:03 +0000 Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibN0J-0002ri-1v for submit@debbugs.gnu.org; Sun, 01 Dec 2019 06:03:03 -0500 Received: from mx1.riseup.net ([198.252.153.129]:42400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibN0H-0002rJ-4w for 38435@debbugs.gnu.org; Sun, 01 Dec 2019 06:03:02 -0500 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47Qlhh4bLszDr5L for <38435@debbugs.gnu.org>; Sun, 1 Dec 2019 03:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575198180; bh=0Gq3HV4T96nSKDIyqmOoFhYK84qc7Nx3UHoQcD2C57A=; h=Date:From:To:Subject:In-Reply-To:References:From; b=D8JAV1LSMNRgfCMC1tKl2wkY3qnU6iI3czVy7vKYa+uzLABtcIUIYeX0OoNHjgtNO QJbXX+UY+DDqyj9/q6f8hNqypnLUXH2GVraUDj74zRQZyJWpGDyOvxV43yol3Zr6RK pterNqTtLib2e6tzcOUxnXP5rAk+/WlTALg69nqI= X-Riseup-User-ID: B75DBFB81D3F9AEC794DB9FF0DDE87C1BF8ACB383FC9DBD643A37988CDB51663 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 47Qlhg6hv0zJt5s for <38435@debbugs.gnu.org>; Sun, 1 Dec 2019 03:02:59 -0800 (PST) Date: Sun, 1 Dec 2019 12:02:51 +0100 From: raingloom Message-ID: <20191201120251.06f68c8d@riseup.net> In-Reply-To: <87tv6lo1pk.fsf@yamatai> References: <20191130144539.218179f0@riseup.net> <87tv6lo1pk.fsf@yamatai> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) 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: -1.7 (-) On Sat, 30 Nov 2019 15:53:11 +0100 Guillaume Le Vaillant wrote: > raingloom skribis: > > > This is what I get after a recent `guix system reconfigure` : > > Scanning for Btrfs filesystems > > [ 2.342790] BTRFS error (device sda1): open_ctree failed > > > > Previous profiles work, I haven't modified anything about my > > config.scm between them. > > > > [...] > > > > > > Contents of /etc/profile.scm: > > > > [...] > > > > (file-systems (cons* (file-system > > (device (file-system-label "GUIX")) > > (mount-point "/") > > (options "lazytime,compress") > > (type "btrfs")) > > ;(file-system > > ; (device (uuid "1234-ABCD" 'fat)) > > ; (mount-point "/boot/efi") > > ; (type "vfat")) > > %base-file-systems)) > > > > I just tried adding the 'lazytime' option to my root file system, and > I got the same error as you when booting. Could you try removing it > and see if it works? > > Until recently, the options declared in 'file-system' records were > always ignored when mounting the root file system. Now they are taken > into consideration, and I think it reveals a bug in the way file > systems are mounted. If some options like 'lazytime' or 'defaults' > are declared in a 'file-system' record (root file system or not), > mounting it fails. However some other options like 'compress' or > 'autodefrag' work fine. > > I suspect Guix adds some options by default when trying to mount file > systems, and maybe we end up with conflicting options or doubled > options that cause problems. > > > I removed it and ran reconfigure and now it works. From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 03 Dec 2019 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: raingloom Cc: 38435@debbugs.gnu.org Received: via spool by 38435-submit@debbugs.gnu.org id=B38435.157536648718450 (code B ref 38435); Tue, 03 Dec 2019 09:49:02 +0000 Received: (at 38435) by debbugs.gnu.org; 3 Dec 2019 09:48:07 +0000 Received: from localhost ([127.0.0.1]:39307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ic4mt-0004nW-8Q for submit@debbugs.gnu.org; Tue, 03 Dec 2019 04:48:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]:33829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ic4mq-0004my-ED for 38435@debbugs.gnu.org; Tue, 03 Dec 2019 04:48:05 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 12C9D160062 for <38435@debbugs.gnu.org>; Tue, 3 Dec 2019 10:47:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575366478; bh=kHYyKDzBqZdsEMlBcoaXhopaFME6S93+zokZSr1wJOc=; h=From:To:Cc:Subject:Date:From; b=C5N3bYdfAKs24neaWAIfNdv2GiX+M0DuCWto14VrIONCcLFAZOpnslzul0jeAgrB7 nV5PtM+BxyvBqAf0jQX3RCAGbuZ6CFZY7s3PGfqnrAnyhOhvW2D735aDlMOjBE9Kvt UXW0V8H8jFiIjWdQ0bQBC+AfS0ojO8c0d9WJt39CDpED6adFbS7y0Vgd5s6tOry+l0 NEJmtPY5YqcdMcb54+CtcW7EQYzevgJLoIKXierRFp29sKlv3WGvVx68fDQUz9yFEw lr1xx47PeS1j1DVT2TS9TStMGdOS5a4n3ON92xR/W2RKGJHOwUSEmV1gZeQIBMJ6j7 2jfVn9USnl/Rg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47Rxx66Z6Gz6tmK; Tue, 3 Dec 2019 10:47:54 +0100 (CET) References: <20191130144539.218179f0@riseup.net> <87tv6lo1pk.fsf@yamatai> <20191201120251.06f68c8d@riseup.net> User-agent: mu4e 1.2.0; emacs 26.3 From: Guillaume Le Vaillant In-reply-to: <20191201120251.06f68c8d@riseup.net> Date: Tue, 03 Dec 2019 10:47:48 +0100 Message-ID: <87eexlagfv.fsf@yamatai> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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: -3.3 (---) raingloom skribis: > On Sat, 30 Nov 2019 15:53:11 +0100 > Guillaume Le Vaillant wrote: > >> raingloom skribis: >> >> > This is what I get after a recent `guix system reconfigure` : >> > Scanning for Btrfs filesystems >> > [ 2.342790] BTRFS error (device sda1): open_ctree failed >> > >> > Previous profiles work, I haven't modified anything about my >> > config.scm between them. >> > >> > [...] >> > >> > >> > Contents of /etc/profile.scm: >> > >> > [...] >> > >> > (file-systems (cons* (file-system >> > (device (file-system-label "GUIX")) >> > (mount-point "/") >> > (options "lazytime,compress") >> > (type "btrfs")) >> > ;(file-system >> > ; (device (uuid "1234-ABCD" 'fat)) >> > ; (mount-point "/boot/efi") >> > ; (type "vfat")) >> > %base-file-systems)) >> > >> >> I just tried adding the 'lazytime' option to my root file system, and >> I got the same error as you when booting. Could you try removing it >> and see if it works? >> >> Until recently, the options declared in 'file-system' records were >> always ignored when mounting the root file system. Now they are taken >> into consideration, and I think it reveals a bug in the way file >> systems are mounted. If some options like 'lazytime' or 'defaults' >> are declared in a 'file-system' record (root file system or not), >> mounting it fails. However some other options like 'compress' or >> 'autodefrag' work fine. >> >> I suspect Guix adds some options by default when trying to mount file >> systems, and maybe we end up with conflicting options or doubled >> options that cause problems. >> >> >> > > I removed it and ran reconfigure and now it works. Applying patches #38462 and #38468 and changing the file system definition to the following should allow you to mount the root file system with the 'lazytime' option: --8<---------------cut here---------------start------------->8--- (file-system (device (file-system-label "GUIX")) (mount-point "/") (flags '(lazy-time)) (options "compress") (type "btrfs")) --8<---------------cut here---------------end--------------->8--- From unknown Sat Jun 14 19:23:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38435: BTRFS open_ctree failed Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Feb 2020 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38435 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant Cc: 38435@debbugs.gnu.org Received: via spool by 38435-submit@debbugs.gnu.org id=B38435.158204340323562 (code B ref 38435); Tue, 18 Feb 2020 16:31:02 +0000 Received: (at 38435) by debbugs.gnu.org; 18 Feb 2020 16:30:03 +0000 Received: from localhost ([127.0.0.1]:41196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j45l4-00067o-QW for submit@debbugs.gnu.org; Tue, 18 Feb 2020 11:30:03 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:47018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j45l2-00066w-HA for 38435@debbugs.gnu.org; Tue, 18 Feb 2020 11:30:01 -0500 Received: by mail-qt1-f181.google.com with SMTP id i14so7689380qtv.13 for <38435@debbugs.gnu.org>; Tue, 18 Feb 2020 08:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dhxk/KB23uMxpZxH3PVtcM67Pq1uQtl/US4v4AlcnAg=; b=bFSGmEN3hUmUkDDwCqL3BljP2JifnuKJzd4brc6knSgGNTIw3KYuolaN2MkoGFAm3l SM4UZ+4ZBzr/IdRPcD+9M/1ZU018QOLP1lI6oZCEBJiS7OJ8AtvaNzGadtWf2Msx9eh8 ZhJq6+9KkdUOdagw9YsqN/RSPRe5aQPrd6A3ENxqHTkRKGfQ4gQsKl7fE15DDr5QxE72 FB0cpoRV8eGN7hf6+DUfQyuJkeo3eXnBGW2oIVdhTmEAkTauRevVg7fP0qyHgjtQvHDj gDH7m+F4/McRS5tgQ+n1S0Adj6i/90a0W2a3Ov/VWWMARmI9DawQ/swaFDZeyVcydy2j bVfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=dhxk/KB23uMxpZxH3PVtcM67Pq1uQtl/US4v4AlcnAg=; b=h8fy2g7457qCOqMV0aMnUJClVaewCoFX95lU5wi2epDwglDBU5rq+vNJgCqXQmuewd 7OCUIwrR2BbRiEmSEJwPEsuC/f1kp7SEbgjqLuOrMHtlxdJBkgxXc/i57MQclg1yN98z ZNUjgoI97q1jhGI/YAS9wwSBCjeioVX8cxHFBRzBl5/aKJiWXLVLhexPV3jBgVwsXmaU 20KWvAnkmcPdxULfarXeraCxJd6OuJmmIgyQVD0BFtd7lfs0VaAom5NPytNg01sEj8Lt GLb3p0qQATlKlEIOVXhtb+9adUDoZZEHiu00QhkIBeyNzM2617jEvxYNL8ARGC91NhOX xwNA== X-Gm-Message-State: APjAAAU4NGoYewWy3jpHtuqRVA1tNltHFE5gEX99dtNR12K3YOXp57UE 41cM1sn6X8gzWXOiVkqWlAuzt87O X-Google-Smtp-Source: APXvYqxRhgOHhXE0JuLq+sq53BOy00Fq/BAFpRXMAk9X3YtJU2Ze/VWAdFFZiQBc06z9KwAJsvXucw== X-Received: by 2002:ac8:53c7:: with SMTP id c7mr17781924qtq.311.1582043394870; Tue, 18 Feb 2020 08:29:54 -0800 (PST) Received: from raisin ([2607:fad8:4:6:235e:8579:8464:aacc]) by smtp.gmail.com with ESMTPSA id j28sm2160947qki.61.2020.02.18.08.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 08:29:54 -0800 (PST) From: Maxim Cournoyer References: <20191130144539.218179f0@riseup.net> <87tv6lo1pk.fsf@yamatai> Date: Tue, 18 Feb 2020 11:29:53 -0500 In-Reply-To: <87tv6lo1pk.fsf@yamatai> (Guillaume Le Vaillant's message of "Sat, 30 Nov 2019 15:53:11 +0100") Message-ID: <875zg3zwn2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hello, Guillaume Le Vaillant writes: > raingloom skribis: > >> This is what I get after a recent `guix system reconfigure` : >> Scanning for Btrfs filesystems >> [ 2.342790] BTRFS error (device sda1): open_ctree failed >> >> Previous profiles work, I haven't modified anything about my config.scm >> between them. >> >> [...] >> >> >> Contents of /etc/profile.scm: >> >> [...] >> >> (file-systems (cons* (file-system >> (device (file-system-label "GUIX")) >> (mount-point "/") >> (options "lazytime,compress") >> (type "btrfs")) >> ;(file-system >> ; (device (uuid "1234-ABCD" 'fat)) >> ; (mount-point "/boot/efi") >> ; (type "vfat")) >> %base-file-systems)) >> > > I just tried adding the 'lazytime' option to my root file system, and > I got the same error as you when booting. Could you try removing it and > see if it works? > > Until recently, the options declared in 'file-system' records were > always ignored when mounting the root file system. Now they are taken > into consideration, and I think it reveals a bug in the way file systems > are mounted. If some options like 'lazytime' or 'defaults' are declared > in a 'file-system' record (root file system or not), mounting it fails. > However some other options like 'compress' or 'autodefrag' work fine. > > I suspect Guix adds some options by default when trying to mount file > systems, and maybe we end up with conflicting options or doubled options > that cause problems. The problem here is that "lazytime" is a file system independent mount options (see FILESYSTEM-INDEPENDENT MOUNT OPTIONS in 'man 8 mount'), which is not understood by the Btrfs file system driver itself. Currently Guix targets mount(2) through its file-system record API, although this could be easily abused before (because the options were not passed to the `mount-file-system' calls that the init RAM disk uses). This leaves some work to be done though, as if we target mount(2), we need some glue code to translate mount(2) flags into mount(8) file system independent mount options (otherwise you wouldn't be able to have 'lazytime' in your /etc/fstab). I have a partial solution posted for review here: https://lists.gnu.org/archive/html/guix-patches/2020-02/msg00382.html, in the patch: https://lists.gnu.org/archive/html/guix-patches/2020-02/msg00382.html. Currently it filters out the file system independent mount options before passing the options to `mount-file-system'. Comments or patches welcome! From unknown Sat Jun 14 19:23:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: raingloom Subject: bug#38435: closed (Re: bug#38435: BTRFS open_ctree failed) Message-ID: References: <87v9bbr43p.fsf@gmail.com> <20191130144539.218179f0@riseup.net> X-Gnu-PR-Message: they-closed 38435 X-Gnu-PR-Package: guix Reply-To: 38435@debbugs.gnu.org Date: Mon, 01 Feb 2021 19:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1612207022-1479-1" This is a multi-part message in MIME format... ------------=_1612207022-1479-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #38435: BTRFS open_ctree failed which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 38435@debbugs.gnu.org. --=20 38435: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38435 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1612207022-1479-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 38435-done) by debbugs.gnu.org; 1 Feb 2021 19:16:19 +0000 Received: from localhost ([127.0.0.1]:33244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6egM-0000Mo-Qq for submit@debbugs.gnu.org; Mon, 01 Feb 2021 14:16:19 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:42049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6egL-0000Mb-8G for 38435-done@debbugs.gnu.org; Mon, 01 Feb 2021 14:16:18 -0500 Received: by mail-qt1-f179.google.com with SMTP id e15so13090161qte.9 for <38435-done@debbugs.gnu.org>; Mon, 01 Feb 2021 11:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xOnPjQXrtrc9AExQRO/5tSWfCYbLPRBGaKnI/wJGqrk=; b=OxTO65Yr0tvSXhZkNKnMKccbS13TTHmPaSty3Vf2QYA3yT6SK+ZRRjtZi+rt79emmV l0j+mPgPhrX3n1qV9cv2B5yeU+cS5i1H9NglGofAM7Vfbg3XxT6W6VPlqKB5ZjqPY+1n yQ/lYfpKxTs7LyaINbKJfwoJBSYmr6ZzyUayzBvQI4/S7tSi+nPIYaSWQBPQwIid3Mow vcbrIhjWdpTFPMIIu7uBbQerIBj5dfvtHBVWqD3UXDybWoCEJj+7b0EDcwyZ2Dg5jqNu Jil6b85/7A4d2NTTI6Y5Ibn7nodQ8rO8oOTZzej6jxAoLMg6H/PGNOiIEXTAup3xaWVk P9+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xOnPjQXrtrc9AExQRO/5tSWfCYbLPRBGaKnI/wJGqrk=; b=KVDXrmx0CTSBI3TRHdVSD+6mEE1QjsjyA0+ESmKAaMbobmT+DYs98f2gz1pclh+AFl BZPOa/qgH7mBoLhNdxFozLX0cYQlbJERS12mtKC0iSNeZxW4HAcQS07fbIIr39ZMi1X0 /G4+qcDIl1FhopAW60RriXPvNUlbA5Xa280gsqtHWRvOw5oNvoK3IsCX6qyEbQbKSCdw O3wByTQOE63VrZ93NjxDhn4XRHkmjapqtAK7oAVGyxlWbBMX68WjkqbkBZH7pGGEpdIR RZ8+Kk+pMfQa1MuRNnkH1NC+FOD///oJaoVHZwjSNr4btb50kmM+5YwqyDmiygsgtVmZ 1ECw== X-Gm-Message-State: AOAM533qXEvhwxUtvkcgQ5WvbQcs7tPdbRctPuYadHOxXFGm7dVx3nBx kBIOpqzzPPgswmzjs2UXkX98Ryhl6IBo1g== X-Google-Smtp-Source: ABdhPJx7dYN5mTfgBHKtJkgm7PX3MMMqp0K5rhd3Ik4uCPfqvfEH1dSf9Z8CLh8oZ5CexFF3A2+XmQ== X-Received: by 2002:ac8:7304:: with SMTP id x4mr16594978qto.338.1612206971661; Mon, 01 Feb 2021 11:16:11 -0800 (PST) Received: from hurd (dsl-205-236-230-168.b2b2c.ca. [205.236.230.168]) by smtp.gmail.com with ESMTPSA id c127sm12981120qkd.87.2021.02.01.11.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 11:16:10 -0800 (PST) From: Maxim Cournoyer To: Guillaume Le Vaillant Subject: Re: bug#38435: BTRFS open_ctree failed References: <20191130144539.218179f0@riseup.net> <87tv6lo1pk.fsf@yamatai> <20191201120251.06f68c8d@riseup.net> <87eexlagfv.fsf@yamatai> Date: Mon, 01 Feb 2021 14:16:10 -0500 In-Reply-To: <87eexlagfv.fsf@yamatai> (Guillaume Le Vaillant's message of "Tue, 03 Dec 2019 10:47:48 +0100") Message-ID: <87v9bbr43p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38435-done Cc: 38435-done@debbugs.gnu.org, raingloom 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: -1.0 (-) Hello, Guillaume Le Vaillant writes: [...] >>> > (file-systems (cons* (file-system >>> > (device (file-system-label "GUIX")) >>> > (mount-point "/") >>> > (options "lazytime,compress") >>> > (type "btrfs")) >>> > ;(file-system >>> > ; (device (uuid "1234-ABCD" 'fat)) >>> > ; (mount-point "/boot/efi") >>> > ; (type "vfat")) >>> > %base-file-systems)) >>> > >>> >>> I just tried adding the 'lazytime' option to my root file system, and >>> I got the same error as you when booting. Could you try removing it >>> and see if it works? >>> >>> Until recently, the options declared in 'file-system' records were >>> always ignored when mounting the root file system. Now they are taken >>> into consideration, and I think it reveals a bug in the way file >>> systems are mounted. If some options like 'lazytime' or 'defaults' >>> are declared in a 'file-system' record (root file system or not), >>> mounting it fails. However some other options like 'compress' or >>> 'autodefrag' work fine. >>> >>> I suspect Guix adds some options by default when trying to mount file >>> systems, and maybe we end up with conflicting options or doubled >>> options that cause problems. >>> >>> >>> >> >> I removed it and ran reconfigure and now it works. > > Applying patches #38462 and #38468 and changing the file system > definition to the following should allow you to mount the root file > system with the 'lazytime' option: > > (file-system > (device (file-system-label "GUIX")) > (mount-point "/") > (flags '(lazy-time)) > (options "compress") > (type "btrfs")) I see these earlier patches of yours got merged already and the original issue addressed. Thank you! Closing. Maxim ------------=_1612207022-1479-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Nov 2019 13:46:25 +0000 Received: from localhost ([127.0.0.1]:33842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib34q-0000i2-J6 for submit@debbugs.gnu.org; Sat, 30 Nov 2019 08:46:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:52171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ib34o-0000hu-Gi for submit@debbugs.gnu.org; Sat, 30 Nov 2019 08:46:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38014) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ib34m-0002Mc-Ap for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:22 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ib34k-0008TA-KR for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:20 -0500 Received: from mx1.riseup.net ([198.252.153.129]:38660) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ib34k-0008S1-7a for bug-guix@gnu.org; Sat, 30 Nov 2019 08:46:18 -0500 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47QCM34GcwzFcF9 for ; Sat, 30 Nov 2019 05:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575121575; bh=cxU9TOZeW54BPeTrkHhqx0h4wJmKUvrmOB4SwmXFcvY=; h=Date:From:To:Subject:From; b=HI+rcMlevlK6dS2TpcAYTht2OiYY8HDe2+O+gK+3QWr31xvv7NiHiCg5K7H2OUHo5 Ne7gm6G7cfeMBj/pbzMwkmYC56+UoFKn5Qbr9bbkqhw7cCVsBaa9IjlfuWBhT4NMTl otqUhkHxY6qEmcNtf1ESUtFgauwB+n/lsdLvul6o= X-Riseup-User-ID: 25D8C0FA5E8BDF769107C2BDA0D789DA07611158B2F01D0ADA7CFD47074F930B Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 47QCM30mrTz8tJj for ; Sat, 30 Nov 2019 05:45:50 -0800 (PST) Date: Sat, 30 Nov 2019 14:45:39 +0100 From: raingloom To: bug-guix@gnu.org Subject: BTRFS open_ctree failed Message-ID: <20191130144539.218179f0@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.252.153.129 X-Spam-Score: -1.4 (-) 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.4 (--) This is what I get after a recent `guix system reconfigure` : Scanning for Btrfs filesystems [ 2.342790] BTRFS error (device sda1): open_ctree failed Previous profiles work, I haven't modified anything about my config.scm between them. Full output from kernel (taken by booting it from QEMU and redirecting ttyS0 to stdio): ``` qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -hda /dev/sda -m 1G -serial stdio WARNING: Image format was not specified for '/dev/sda' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat Welcome, this is GNU's early boot Guile. Use '--repl' for an initrd REPL. loading kernel modules... Scanning for Btrfs filesystems [ 2.342790] BTRFS error (device sda1): open_ctree failed ERROR: In procedure mount: In procedure mount: Invalid argument Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. GNU Guile 2.2.6 Copyright (C) 1995-2019 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,bt In gnu/build/linux-boot.scm: 533:14 2 (_) 387:8 1 (mount-root-file-system _ _ #:volatile-root? _ #:options =E2= =80=A6) In unknown file: 0 (mount "/dev/sda1" "/root" "btrfs" 0 "lazytime,compress") scheme@(guile-user)> ,q =20 [ 42.345826] Kernel panic - not syncing: Attempted to kill init! ``` (rest of stack trace snipped for brevity's sake) output of `guix describe` as root: ``` Generation 26 Nov 29 2019 21:22:41 (current) nonguix 2df6923 repository URL: https://gitlab.com/nonguix/nonguix.git branch: master commit: 2df692312100ac5bea9ed8e8bf0032e6db100e91 guix dac7928 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: dac7928d502d9ba4fc6a9621e5b2b15019d92d5b ``` Contents of /etc/profile.scm: ``` (define use-proprietary-crap? #f) (use-modules (gnu) (gnu system nss) (gnu packages shells) (gnu packages package-management) (gnu packages gnome)) (if use-proprietary-crap? (use-modules (nongnu packages linux)) (use-modules (gnu packages linux))) (use-service-modules desktop ssh nix) (use-package-modules bootloaders certs ratpoison suckless wm) (operating-system (host-name "bingobongo") (timezone "Europe/Budapest") (locale "en_US.utf8") (kernel (if use-proprietary-crap? linux linux-libre)) (firmware (append (if use-proprietary-crap? (list iwlwifi-firmware) '()) %base-firmware)) ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) ;; Assume the target root file system is labelled "my-root", ;; and the EFI System Partition has UUID 1234-ABCD. (file-systems (cons* (file-system (device (file-system-label "GUIX")) (mount-point "/") (options "lazytime,compress") (type "btrfs")) ;(file-system ; (device (uuid "1234-ABCD" 'fat)) ; (mount-point "/boot/efi") ; (type "vfat")) %base-file-systems)) (users (append (list (user-account (name "raingloom") (comment "your friendly localhost admin") (group "users") (shell "/run/current-system/profile/bin/zsh") (supplementary-groups '("wheel" "netdev" "audio" "video" "kvm")) (home-directory "/home/raingloom"))) %base-user-accounts)) ;; Add a bunch of window managers; we can choose one at ;; the log-in screen with F1. (packages (cons* i3-wm i3status dmenu ;window managers nss-certs ;for HTTPS access zsh ;nicer login shell gvfs nix gnome orca %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with NetworkManager, and more. (services (append (list (service nix-service-type) (service openssh-service-type (openssh-configuration (x11-forwarding? #t)))) (modify-services %desktop-services (elogind-service-type config =3D> (elogind-configuration (inherit config) (handle-lid-switch 'ignore)))))) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) ``` ------------=_1612207022-1479-1--