GNU bug report logs - #64588
BUG: stat -f incorrectly reports a BTRFS device as a tmpfs

Previous Next

Package: coreutils;

Reported by: "debug <at> roosoft.ltd.uk" <debug <at> roosoft.ltd.uk>

Date: Thu, 13 Jul 2023 03:28:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: support <support <at> roosoft.ltd.uk>
To: bug-coreutils <bug-coreutils <at> gnu.org>
Subject: BUG: stat -f incorrectly reports a BTRFS device as a tmpfs
Date: Wed, 12 Jul 2023 23:46:38 +0100
coreutils version 9.1-1 on Debian testing, but also exists in previous 
versions.


Example:

stat -f  /dev/sdb
  File: "/dev/sdb"
    ID: eb91af7d7bda02dd Namelen: 255     Type: tmpfs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 2012292    Free: 2012292    Available: 2012292
Inodes: Total: 2012292    Free: 2011839


stat -f  /dev/disk/by-uuid/6abaa68a-2670-4d8b-8d2a-fd7321df9242
  File: "/dev/disk/by-uuid/6abaa68a-2670-4d8b-8d2a-fd7321df9242"
    ID: eb91af7d7bda02dd Namelen: 255     Type: tmpfs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 2012292    Free: 2012292    Available: 2012292
Inodes: Total: 2012292    Free: 2011839


blkid /dev/sdb
/dev/sdb: UUID="6abaa68a-2670-4d8b-8d2a-fd7321df9242" 
UUID_SUB="d15f1846-8f18-4ba0-9e2a-a6aaa7bbf83b" BLOCK_SIZE="4096" 
TYPE="btrfs"


Not sure why the reported fstype is wrong but obviously it is a bug.


TIA





This bug report was last modified 1 year and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.