From unknown Sun Aug 17 09:10:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38573 <38573@debbugs.gnu.org> To: bug#38573 <38573@debbugs.gnu.org> Subject: Status: coreutils 8.31 tests/df/skip-rootfs.sh fail when using rootfs Reply-To: bug#38573 <38573@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:10:59 +0000 retitle 38573 coreutils 8.31 tests/df/skip-rootfs.sh fail when using rootfs reassign 38573 coreutils submitter 38573 Rickard Nilsson severity 38573 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 11 20:40:12 2019 Received: (at submit) by debbugs.gnu.org; 12 Dec 2019 01:40:12 +0000 Received: from localhost ([127.0.0.1]:58874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifDSe-00008w-3D for submit@debbugs.gnu.org; Wed, 11 Dec 2019 20:40:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:34723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifBNN-0004GE-S7 for submit@debbugs.gnu.org; Wed, 11 Dec 2019 18:26:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57250) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifBNM-0001Sg-GX for bug-coreutils@gnu.org; Wed, 11 Dec 2019 18:26:37 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, 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 1ifBNL-00060O-7U for bug-coreutils@gnu.org; Wed, 11 Dec 2019 18:26:36 -0500 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:43914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifBNK-0005wu-Tb for bug-coreutils@gnu.org; Wed, 11 Dec 2019 18:26:35 -0500 Received: by mail-lj1-x22a.google.com with SMTP id a13so66808ljm.10 for ; Wed, 11 Dec 2019 15:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=SeKiErWOksw44EKgUPkeH7ZEbyfMOOFtCR4SX9quS48=; b=FKPathPLYKbLv0GSH21y9xnpKlyNCDC3oO9WgeP2B5Djm3P7f9+17hbPfsu+mUy7AS VLK/4bmc7GGAhwbFuni81lXnahjsQJtQxc8Rv/yYvnhBeVmsfQEizGGayGzlRkS7Jp94 mNpmVqzCnU3p6mULW7x+5VOIYNPvx7XVbFmknqv5w9Mxhgc7TetG0cn11H3/7L/Xsm9G E+XLkEJZEMS3d1c8J+rgksd3bujK8gNDCsXeF8050csGGIVXDHrI5F8IqYQCf8A82Z6B oZRI1tZ5DjM2UbvA3fqEF5lbFIODqCL+DEWOiHWWstNJs/hH7dh6ZWGVJEFg+DHuUa68 eQ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=SeKiErWOksw44EKgUPkeH7ZEbyfMOOFtCR4SX9quS48=; b=LE0Uulz9m2PFQ7Y4e8+qAVxvsQ0ONteEdANeB81G4xnztQXR1UrHxW3WT/D8veXFpf 2hmG/VYyLHzte5221Q6h1ReiCbqbZUII9kPbGcUP28pBNHS2aIA/WYViYQTOpHDVahC8 s5Pys5qAXWo2CwliQBQT6vo0e3Dp+AxWjWSI/dxmoZUZnXoNmKIT4CaQVtKvcQlGbSIo hlBrdk83gbDCGVy0AmUnSEVl8sL91ZGvchaLr83k/ys+26ySfuPxxkucRuZClsOePAnt 3evyQ2KDVY2TbEDudRlkGVODt/YlCmCbWD9sqP1xLR5lSwshITLxUcQ9DYcdXR9g0gDi 1kwQ== X-Gm-Message-State: APjAAAUAhRQC8jkwnHrf1fzwu42Imw1X66sXO+9Rfd8MP6qhoxlxeP4d AgrRV18YyqyG76QheX69+yfgcgc= X-Google-Smtp-Source: APXvYqyu5sy1XraqSYMEwDYu5rlqETkiPZMwKhLQZ2J/FH6Des/RwBCJS/CT/uNxguUP+RdOXJQtKw== X-Received: by 2002:a2e:5751:: with SMTP id r17mr3986366ljd.254.1576106792546; Wed, 11 Dec 2019 15:26:32 -0800 (PST) Received: from [10.14.0.29] (31-209-50-25.cust.bredband2.com. [31.209.50.25]) by smtp.googlemail.com with ESMTPSA id y8sm1930964lji.56.2019.12.11.15.26.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Dec 2019 15:26:31 -0800 (PST) To: bug-coreutils@gnu.org From: Rickard Nilsson Subject: coreutils 8.31 tests/df/skip-rootfs.sh fail when using rootfs Message-ID: Date: Thu, 12 Dec 2019 00:26:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22a X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 11 Dec 2019 20:40:10 -0500 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 (--) I have build server where /proc/self/mountinfo looks like this: 1 1 0:2 / / rw - rootfs rootfs rw,size=959528k,nr_inodes=239882 24 1 0:23 / /dev/pts rw,relatime - devpts devpts rw,mode=600,ptmxmode=000 25 1 0:5 / /proc rw,relatime - proc proc rw 26 1 0:24 / /sys rw,relatime - sysfs sysfs rw 27 1 0:25 / /ro/store ro,nosuid,nodev,relatime - fuse.nixstore nixstore ro,user_id=0,group_id=0,allow_other 28 1 0:26 / /tmp rw,relatime - tmpfs tmpfs rw,size=1971456k 29 1 0:27 / /nix/var rw,relatime - tmpfs tmpfs rw,size=1971456k,mode=755 30 1 0:28 / /dev/shm rw,nosuid,nodev - tmpfs tmpfs rw,size=1971456k 31 1 0:2 /nix/store /nix/store_initrd rw - rootfs rootfs rw,size=959528k,nr_inodes=239882 35 1 0:29 / /nix/store rw,relatime - overlay overlay rw,lowerdir=/ro/store:/nix/store_initrd,upperdir=/nix/var/store_rw,workdir=/nix/var/store_wrk 36 29 259:0 / /nix/var/nix/db rw,noatime - ext4 /dev/pmem0 rw,nobarrier There's a lot of stuff there that probably is irrelevant for this issue. What is special about the build server is that it actually uses the original rootfs from its initrd. That is, it never mounts any other root fs and runs switch_root or chroot or anything. When I run df without options I get this: Filesystem 1K-blocks Used Available Use% Mounted on rootfs 959528 121988 837540 13% / tmpfs 1971456 0 1971456 0% /tmp tmpfs 1971456 0 1971456 0% /nix/var tmpfs 1971456 0 1971456 0% /dev/shm overlay 1971456 0 1971456 0% /nix/store /dev/pmem0 1032088 2608 960668 1% /nix/var/nix/db With the -a option I get: Filesystem 1K-blocks Used Available Use% Mounted on rootfs 959528 121988 837540 13% / devpts 0 0 0 - /dev/pts proc 0 0 0 - /proc sysfs 0 0 0 - /sys nixstore 0 0 0 - /ro/store tmpfs 1971456 0 1971456 0% /tmp tmpfs 1971456 0 1971456 0% /nix/var tmpfs 1971456 0 1971456 0% /dev/shm rootfs 959528 121988 837540 13% /nix/store_initrd overlay 1971456 0 1971456 0% /nix/store /dev/pmem0 1032088 2608 960668 1% /nix/var/nix/db The test phase of the coreutils 8.31 build fails on this server with the following failure: FAIL: tests/df/skip-rootfs ========================== Filesystem 1K-blocks Used Available Use% Mounted on rootfs 5964104 121976 5842128 3% / tmpfs 11980608 93744 11886864 1% /tmp tmpfs 11980608 8 11980600 1% /nix/var overlay 11980608 8 11980600 1% /nix/store /dev/pmem0 1032088 10860 952416 2% /nix/var/nix/db rootfs 5964104 121976 5842128 3% / rootfs 5964104 121976 5842128 3% /nix/store_initrd rootfs 5964104 121976 5842128 3% / Filesystem 1K-blocks Used Available Use% Mounted on rootfs 5964104 121976 5842128 3% / tmpfs 11980608 93748 11886860 1% /tmp tmpfs 11980608 8 11980600 1% /nix/var overlay 11980608 8 11980600 1% /nix/store /dev/pmem0 1032088 10860 952416 2% /nix/var/nix/db rootfs 5964104 121976 5842128 3% / Filesystem 1K-blocks Used Available Use% Mounted on rootfs 5964104 121976 5842128 3% / rootfs 5964104 121976 5842128 3% / rootfs 5964104 121976 5842128 3% /nix/store_initrd 1 1 0:2 / / rw - rootfs rootfs rw,size=5964104k,nr_inodes=1491026 24 1 0:23 / /dev/pts rw,relatime - devpts devpts rw,mode=600,ptmxmode=000 25 1 0:5 / /proc rw,relatime - proc proc rw 26 1 0:24 / /sys rw,relatime - sysfs sysfs rw 27 1 0:25 / /ro/store ro,nosuid,nodev,relatime - fuse.nixstore nixstore ro,user_id=0,group_id=0,allow_other 28 1 0:26 / /tmp rw,relatime - tmpfs tmpfs rw,size=11980608k 29 1 0:27 / /nix/var rw,relatime - tmpfs tmpfs rw,size=11980608k,mode=755 30 1 0:2 /nix/store /nix/store_initrd rw - rootfs rootfs rw,size=5964104k,nr_inodes=1491026 34 1 0:28 / /nix/store rw,relatime - overlay overlay rw,lowerdir=/ro/store:/nix/store_initrd,upperdir=/nix/var/store_rw,workdir=/nix/var/store_wrk 35 29 259:0 / /nix/var/nix/db rw,noatime - ext4 /dev/pmem0 rw,nobarrier FAIL tests/df/skip-rootfs.sh (exit status: 1) Is the df/skip-rootfs test case really correct? Looking at it, it seems that rootfs entries should never appear in the df output except for when specified with -t rootfs. But as you can see above, df does output rootfs entries in other cases (and that does not seem wrong to me). Best regards, Rickard Nilsson