duf
duf copied to clipboard
`-only` and `-json` don't work together, `-only fuse` doesn't work at all
To Reproduce
json not filtering:
- run
duf -only local -jsonorduf -only special -json - observe all devices being printed in the json (for me that is special, local and fuse)
only fuse not working:
- run
duf -all - see some (for me one) fuse file systems
- run
duf -only fuse - observe nothing being printed
System Information
$ duf --version
duf 0.8.1
$ uname -a
Linux venquore 6.10.3 #1-NixOS SMP PREEMPT_DYNAMIC Sat Aug 3 07:01:09 UTC 2024 x86_64 GNU/Linux
$ nixos-version
24.11.20240811.a58bc8a (Vicuna)
https://github.com/muesli/duf/blob/ae480f3d59342a8963ffb7b4a5070a32086314fb/main.go#L50
--json is supposed to print all devices
https://github.com/muesli/duf/blob/ae480f3d59342a8963ffb7b4a5070a32086314fb/groups.go#L80-L88
--only fuse shows only fuse devices, but each device also has to be a valid storage device
For example, I can see 4 fuse devices with --all, but only the first one that is actually an object storage mounted with JuiceFS can be recognized.
--all
--only fuse
Still reproducing with 0.9.1:
$ duf --version
duf 0.9.1
$ duf --all
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 7 local devices │
├──────────────────────────────────────────────────────┬────────┬────────┬────────┬────────────────────────────┬────────────┬────────────────────────┤
│ MOUNTED ON │ SIZE │ USED │ AVAIL │ USE% │ TYPE │ FILESYSTEM │
├──────────────────────────────────────────────────────┼────────┼────────┼────────┼────────────────────────────┼────────────┼────────────────────────┤
│ / │ 136.4G │ 120.8G │ 8.7G │ █████████████████▌ 88.5% │ ext4 │ /dev/vg1-primary-/root │
│ /boot │ 920.7M │ 150.1M │ 706.9M │ ███ 16.3% │ ext4 │ /dev/nvme0n1p2 │
│ /boot/efi │ 523.0M │ 8.5M │ 514.5M │ 1.6% │ vfat │ /dev/nvme0n1p1 │
│ /data │ 730.1G │ 262.7G │ 430.3G │ ███████ 36.0% │ ext4 │ /dev/vg1/data │
│ /run/rpc_pipefs │ 0B │ 0B │ 0B │ 0.0% │ rpc_pipefs │ sunrpc │
╰──────────────────────────────────────────────────────┴────────┴────────┴────────┴────────────────────────────┴────────────┴────────────────────────╯
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 2 fuse devices │
├──────────────────────────┬──────┬──────┬───────┬───────────────────────────┬─────────────────┬────────────┤
│ MOUNTED ON │ SIZE │ USED │ AVAIL │ USE% │ TYPE │ FILESYSTEM │
├──────────────────────────┼──────┼──────┼───────┼───────────────────────────┼─────────────────┼────────────┤
│ /tmp/.mount_seaf-cdWOJX0 │ 0B │ 0B │ 0B │ 0.0% │ fuse.seaf-cli │ seaf-cli │
│ /tmp/.mount_twitchyeXvEb │ 0B │ 0B │ 0B │ 0.0% │ fuse.twitch-gui │ twitch-gui │
╰──────────────────────────┴──────┴──────┴───────┴───────────────────────────┴─────────────────┴────────────╯
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 26 special devices │
├─────────────────────────────────────────────────────────────┬────────┬────────┬───────┬────────────────────────────┬─────────────┬──────────────────────────┤
│ MOUNTED ON │ SIZE │ USED │ AVAIL │ USE% │ TYPE │ FILESYSTEM │
├─────────────────────────────────────────────────────────────┼────────┼────────┼───────┼────────────────────────────┼─────────────┼──────────────────────────┤
│ /dev │ 22.4G │ 0B │ 22.4G │ 0.0% │ devtmpfs │ udev │
│ /dev/hugepages │ 0B │ 0B │ 0B │ 0.0% │ hugetlbfs │ hugetlbfs │
│ /dev/mqueue │ 0B │ 0B │ 0B │ 0.0% │ mqueue │ mqueue │
│ /dev/pts │ 0B │ 0B │ 0B │ 0.0% │ devpts │ devpts │
...
│ /tmp │ 22.4G │ 23.4M │ 22.4G │ 0.1% │ tmpfs │ tmpfs │
╰─────────────────────────────────────────────────────────────┴────────┴────────┴───────┴────────────────────────────┴─────────────┴──────────────────────────╯
$ duf --only fuse