Skip to content

[BUG] Btrfs showing wrong total size for RAID1 #1941

@SitiSchu

Description

@SitiSchu

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

For a btrfs RAID1 with multiple disks, the btrfs {total} reports the size of all disks added up instead of the actual usable size.

Version used

fastfetch 2.51.1 (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

pacman

Screenshots

No response

Configuration

System information

Collapsed
[
  {
    "type": "Title",
    "result": {
      "userName": "sitischu",
      "fullUserName": "",
      "hostName": "mizutsune",
      "homeDir": "/home/sitischu/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/bash"
    },
    "stat": 0.019367992877960205
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.013345003128051758
  },
  {
    "type": "OS",
    "result": {
      "buildID": "rolling",
      "codename": "",
      "id": "arch",
      "idLike": "",
      "name": "Arch Linux",
      "prettyName": "Arch Linux",
      "variant": "",
      "variantID": "",
      "version": "",
      "versionID": ""
    },
    "stat": 0.08506304025650024
  },
  {
    "type": "Host",
    "result": {
      "family": "Server",
      "name": "",
      "version": "",
      "sku": "",
      "vendor": "ASUSTeK COMPUTER INC.",
      "serial": "",
      "uuid": ""
    },
    "stat": 0.42774999141693115
  },
  {
    "type": "BIOS",
    "type": "BIOS",
    "result": {
      "date": "05/12/2021",
      "release": "5.13",
      "vendor": "American Megatrends Inc.",
      "version": "0803",
      "type": "UEFI"
    },
    "stat": 0.1894410252571106
  },
  {
    "type": "Bootmgr",
    "error": "Failed to read efivar: BootCurrent",
    "stat": 0.010595977306365967
  },
  {
    "type": "Board",
    "result": {
      "name": "WS C246 DC",
      "vendor": "ASUSTeK COMPUTER INC.",
      "version": "Rev 1.xx",
      "serial": ""
    },
    "stat": 0.12309497594833374
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Desktop",
      "vendor": "",
      "version": "",
      "serial": ""
    },
    "stat": 0.19430100917816162
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.16.3-arch1-1",
      "version": "#1 SMP PREEMPT_DYNAMIC Sat, 23 Aug 2025 15:32:49 +0000",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.0028600096702575684
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "257.8-2-arch",
      "pid": 1
    },
    "stat": 1.1323840022087097
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 499103280,
      "bootTime": "2025-08-25T02:13:26.897+0200"
    },
    "stat": 0.11418896913528442
  },
  {
    "type": "Loadavg",
    "result": [
      0.07,
      0.11,
      0.09
    ],
    "stat": 0.03763699531555176
  },
  {
    "type": "Processes",
    "result": 279,
    "stat": 0.7285280227661133
  },
  {
    "type": "Packages",
    "result": {
      "all": 225,
      "amSystem": 0,
      "amUser": 0,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "hpkgSystem": 0,
      "hpkgUser": 0,
      "linglong": 0,
      "mport": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "opkg": 0,
      "pacman": 225,
      "pacstall": 0,
      "paludis": 0,
      "pisi": 0,
      "pkg": 0,
      "pkgtool": 0,
      "pkgsrc": 0,
      "macports": 0,
      "rpm": 0,
      "scoopUser": 0,
      "scoopGlobal": 0,
      "snap": 0,
      "soar": 0,
      "sorcery": 0,
      "winget": 0,
      "xbps": 0,
      "pacmanBranch": ""
    },
    "stat": 0.3486189842224121
  },
  {
    "type": "Shell",
    "result": {
      "exe": "bash",
      "exeName": "bash",
      "exePath": "/usr/bin/bash",
      "pid": 167109,
      "ppid": 167108,
      "processName": "bash",
      "prettyName": "bash",
      "version": "5.3.3",
      "tty": 1
    },
    "stat": 0.6314140558242798
  },
  {
    "type": "Editor",
    "result": {
      "type": "Editor",
      "name": "vim",
      "path": "/usr/bin/vim",
      "exe": "vim",
      "version": "9.1"
    },
    "stat": 0.6947380304336548
  },
  {
    "type": "Display",
    "error": "Couldn't detect display",
    "stat": 1.6845219731330872
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 0.029353022575378418
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.0016009807586669922
  },
  {
    "type": "LM",
    "result": {
      "service": "sshd",
      "type": "TTY",
      "version": "10.0p2"
    },
    "stat": 4.481175005435944
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0.0020470023155212402
  },
  {
    "type": "WM",
    "error": "No WM found",
    "stat": 0.0015929937362670898
  },
  {
    "type": "WMTheme",
    "error": "WM Theme needs successful WM detection",
    "stat": 0.0016040205955505371
  },
  {
    "type": "Theme",
    "error": "Theme isn't supported in TTY",
    "stat": 0.0019189715385437012
  },
  {
    "type": "Icons",
    "error": "Icons aren't supported in TTY",
    "stat": 0.0015230178833007812
  },
  {
    "type": "Font",
    "error": "Font isn't supported in TTY",
    "stat": 0.0013039708137512207
  },
  {
    "type": "Cursor",
    "error": "Cursor isn't supported in TTY",
    "stat": 0.003246009349822998
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 0.128587007522583
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "sshd-session",
      "exe": "sshd-session: sitischu@pts/1",
      "exeName": "1",
      "exePath": "",
      "pid": 167108,
      "ppid": 167105,
      "prettyName": "/dev/pts/1",
      "version": "",
      "tty": "/dev/pts/1"
    },
    "stat": 0.17804700136184692
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: sshd-session",
    "stat": 0.007943987846374512
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 124,
      "rows": 49,
      "width": 0,
      "height": 0
    },
    "stat": 100.39624100923538
  },
  {
    "type": "TerminalTheme",
    "error": "Failed to detect terminal theme",
    "stat": 100.2228530049324
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Intel(R) Xeon(R) E-2176G",
      "vendor": "GenuineIntel",
      "packages": 1,
      "cores": {
        "physical": 6,
        "logical": 12,
        "online": 12
      },
      "frequency": {
        "base": 3700,
        "max": 4700
      },
      "coreTypes": [
        {
          "count": 12,
          "freq": 3700
        }
      ],
      "temperature": 30.0,
      "march": "x86_64-v3"
    },
    "stat": 4.691376984119415
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 262144,
          "num": 6,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 12582912,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 8.183399021625519
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ],
    "stat": 200.76648700237274
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": null,
        "coreCount": null,
        "coreUsage": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          },
          "type": null
        },
        "driver": "i915",
        "name": "UHD Graphics P630",
        "temperature": null,
        "type": "Integrated",
        "vendor": "Intel",
        "platformApi": "DRM (card1)",
        "frequency": 1200,
        "deviceId": 20
      }
    ],
    "stat": 5.620299994945526
  },
  {
    "type": "Memory",
    "result": {
      "total": 67269414912,
      "used": 2997682176
    },
    "stat": 0.013664960861206055
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.006292998790740967
  },
  {
    "type": "Swap",
    "result": [
      {
        "name": "/dev/nvme0n1p1",
        "used": 0,
        "total": 34359734272
      }
    ],
    "stat": 0.010412991046905518
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 465070620672,
          "free": 466783657984,
          "total": 476674613248,
          "used": 9890955264
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/",
        "mountFrom": "/dev/nvme0n1p3",
        "name": "main",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-08-22T01:03:17.583+0200"
      },
      {
        "bytes": {
          "available": 720404480,
          "free": 774090752,
          "total": 1022013440,
          "used": 247922688
        },
        "files": {
          "total": 65536,
          "used": 389
        },
        "filesystem": "ext3",
        "mountpoint": "/boot",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-08-22T01:03:17.000+0200"
      },
      {
        "bytes": {
          "available": 8000192692224,
          "free": 8001269022720,
          "total": 8001561821184,
          "used": 292798464
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/dodogama",
        "mountFrom": "/dev/sda1",
        "name": "dodogama",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-08-24T01:23:12.288+0200"
      },
      {
        "bytes": {
          "available": 8000192692224,
          "free": 8001269022720,
          "total": 8001561821184,
          "used": 292798464
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/dodogama/opencloud",
        "mountFrom": "/dev/sda1",
        "name": "dodogama",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2025-08-24T01:25:41.363+0200"
      },
      {
        "bytes": {
          "available": 465070620672,
          "free": 466783657984,
          "total": 476674613248,
          "used": 9890955264
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/home",
        "mountFrom": "/dev/nvme0n1p3",
        "name": "main",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2025-08-22T01:03:17.591+0200"
      },
      {
        "bytes": {
          "available": 465070620672,
          "free": 466783657984,
          "total": 476674613248,
          "used": 9890955264
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/var/cache",
        "mountFrom": "/dev/nvme0n1p3",
        "name": "main",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2025-08-22T01:03:17.599+0200"
      },
      {
        "bytes": {
          "available": 465070620672,
          "free": 466783657984,
          "total": 476674613248,
          "used": 9890955264
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/var/log",
        "mountFrom": "/dev/nvme0n1p3",
        "name": "main",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2025-08-22T01:03:17.607+0200"
      }
    ],
    "stat": 0.35132700204849243
  },
  {
    "type": "Btrfs",
    "result": [
      {
        "name": "dodogama",
        "uuid": "334acd4d-ecf9-43bc-be6a-2a13c8b20e28",
        "devices": "sdb1,sda1",
        "features": "free_space_tree,no_holes,skinny_metadata,extended_iref",
        "generation": 14704,
        "nodeSize": 16384,
        "sectorSize": 4096,
        "totalSize": 16003123642368,
        "allocation": [
          {
            "type": "data",
            "dup": false,
            "used": 285949952,
            "total": 2147483648
          },
          {
            "type": "metadata",
            "dup": false,
            "used": 1064960,
            "total": 1073741824
          },
          {
            "type": "system",
            "dup": false,
            "used": 16384,
            "total": 8388608
          }
        ]
      },
      {
        "name": "main",
        "uuid": "d70dfcc3-673a-41ba-9394-23f4f9d97794",
        "devices": "nvme0n1p3",
        "features": "default_subvol,free_space_tree,no_holes,skinny_metadata,verity,extended_iref",
        "generation": 17973,
        "nodeSize": 16384,
        "sectorSize": 4096,
        "totalSize": 476674613248,
        "allocation": [
          {
            "type": "data",
            "dup": false,
            "used": 9438658560,
            "total": 10745806848
          },
          {
            "type": "metadata",
            "dup": true,
            "used": 216104960,
            "total": 1073741824
          },
          {
            "type": "system",
            "dup": true,
            "used": 16384,
            "total": 8388608
          }
        ]
      }
    ],
    "stat": 0.20659297704696655
  },
  {
    "type": "Zpool",
    "error": "dlopen libzfs.so failed",
    "stat": 0.12476098537445068
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0.006891012191772461
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0.004976987838745117
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.00047403573989868164
  },
  {
    "type": "Media",
    "error": "No media found",
    "stat": 0.760282039642334
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "xxxxxxxxxxxxx",
      "location": "Falkenstein, DE"
    },
    "stat": 0.07462602853775024
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "eno1",
        "defaultRoute": {
          "ipv4": true,
          "ipv6": true
        },
        "ipv4": "xxxxxxxxxxxx",
        "ipv6": "xxxxxxxxxxxxxx",
        "mac": "xxxxxxxxxxxxxx",
        "mtu": 1500,
        "speed": 1000,
        "flags": "UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP"
      }
    ],
    "stat": 0.32517802715301514
  },
  {
    "type": "DNS",
    "result": [
      "100.100.100.100"
    ],
    "stat": 0.026267051696777344
  },
  {
    "type": "Wifi",
    "result": [],
    "stat": 0.29043400287628174
  },
  {
    "type": "DateTime",
    "result": "2025-08-30T20:51:50.608+0200",
    "stat": 0.005239963531494141
  },
  {
    "type": "Locale",
    "result": "en_US.UTF-8",
    "stat": 0.0008839964866638184
  },
  {
    "type": "Vulkan",
    "error": "dlopen libvulkan.so failed",
    "stat": 0.09182000160217285
  },
  {
    "type": "OpenGL",
    "error": "Fastfetch was built without gl support.",
    "stat": 0.0004280209541320801
  },
  {
    "type": "OpenCL",
    "error": "dlopen libOpenCL.so failed",
    "stat": 0.04212498664855957
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "sitischu",
        "hostName": "xxxxxxxxx",
        "sessionName": "pts/0",
        "clientIp": "xxxxxxxxxx",
        "loginTime": "2025-08-29T15:13:34.362+0200"
      }
    ],
    "stat": 0.046334028244018555
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.003340005874633789
  },
  {
    "type": "BluetoothRadio",
    "error": "Failed to open /sys/class/bluetooth",
    "stat": 0.0017729997634887695
  },
  {
    "type": "Sound",
    "error": "Failed to load libpulse.so",
    "stat": 0.03122103214263916
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0.0033140182495117188
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.016268014907836914
  },
  {
    "type": "Mouse",
    "result": [
      {
        "serial": "",
        "name": "GASIA PS2toUSB Adapter Mouse"
      }
    ],
    "stat": 0.07431197166442871
  },
  {
    "type": "Keyboard",
    "result": [
      {
        "serial": "",
        "name": "GASIA PS2toUSB Adapter"
      }
    ],
    "stat": 0.04426699876785278
  },
  {
    "type": "Weather",
    "result": "+11°C - Clear (not found)",
    "stat": 0.011709988117218018
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "eno1",
        "defaultRoute": true,
        "txBytes": 7928,
        "rxBytes": 8422,
        "txPackets": 49,
        "rxPackets": 50,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 567.4106789827347
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "SAMSUNG MZVL2512HDJD-00B07",
        "devPath": "/dev/nvme0n1",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "ATA HGST HUH721008AL",
        "devPath": "/dev/sdb",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "ATA HGST HUH721008AL",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 0.43657201528549194
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "SAMSUNG MZVL2512HDJD-00B07",
        "devPath": "/dev/nvme0n1",
        "interconnect": "NVMe",
        "kind": "SSD",
        "size": 512110190592,
        "serial": "S782NF0Y616304",
        "removable": false,
        "readOnly": false,
        "revision": "GXD7102Q",
        "temperature": 26.85
      },
      {
        "name": "ATA HGST HUH721008AL",
        "devPath": "/dev/sdb",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 8001563222016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "T9U0",
        "temperature": null
      },
      {
        "name": "ATA HGST HUH721008AL",
        "devPath": "/dev/sda",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 8001563222016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "T9U0",
        "temperature": null
      }
    ],
    "stat": 9.842945992946625
  },
  {
    "type": "TPM",
    "error": "TPM device is not found",
    "stat": 0.02413100004196167
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.51.1",
      "versionGit": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Aug 29 2025, 17:12:52",
      "compiler": "gcc 15.2.1",
      "debugMode": false,
      "libc": "glibc 2.42"
    },
    "stat": 0.0031110048294067383
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.0020409822463989258
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.0008929967880249023
  }
]

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
sqlite3
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
System yyjson
linux/videodev2
linux/wireless

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions