Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Display all BTRFS subvolumes as one partition (i.e. Don't treat BTRFS subvolumes as individual partitions) #375

Open
KSXGitHub opened this issue Jun 26, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@KSXGitHub
Copy link

KSXGitHub commented Jun 26, 2022

Is your feature request related to a problem? Please describe.

Btop has a section that monitor mounted partitions. Below is the Btop UI displaying my filesystem:

Screenshot of Disks in Btop

In the above screenshot, root, home, cache, and log are all subvolumes of the same BTRFS partition. They all have the exact same statistics (same "Used", same "Free", same "Total", and same "IO%"). Therefore, it is redundant to display all of them in different rows.

Describe the solution you'd like

Show only a single row for all subvolumes. The name of the row could either be the name of the partition, or a list of subvolume names (e.g. root,home,cache,log), or just the name of the most important subvolume (e.g. root).

Describe alternatives you've considered

Additional context

My fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>                             <mount point>         <type>   <options>                                                                                               <dump> <pass>
UUID=F832-EB0A                              /boot                 vfat     defaults,noatime                                                                                            0      2

UUID=a036be94-037c-4bc5-a79c-2748298843dd   /                     btrfs    subvol=/@,defaults,noatime,space_cache,autodefrag,x-gvfs-icon=archlinux,x-gvfs-symbolic-icon=archlinux      0      1
UUID=a036be94-037c-4bc5-a79c-2748298843dd   /home                 btrfs    subvol=/@home,defaults,noatime,space_cache,autodefrag                                                       0      2
UUID=a036be94-037c-4bc5-a79c-2748298843dd   /var/cache            btrfs    subvol=/@cache,defaults,noatime,space_cache,autodefrag                                                      0      2
UUID=a036be94-037c-4bc5-a79c-2748298843dd   /var/log              btrfs    subvol=/@log,defaults,noatime,space_cache,autodefrag                                                        0      2

UUID=22df5457-fbb5-4df5-8460-3baea4cd0b97   /mnt/STORAGE4         btrfs    rw,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=STORAGE4                                                     0      0
UUID=82a43590-0e4b-4c13-a2f5-ad442305fd58   /mnt/SS100            btrfs    rw,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=SS100                                                        0      0
UUID=c25b8ff9-86cc-43f0-924e-e33ac4dfaa60   /mnt/DATA             btrfs    rw,nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=DATA                                                         0      0
@KSXGitHub KSXGitHub added the enhancement New feature or request label Jun 26, 2022
@ysolis
Copy link

ysolis commented May 12, 2023

y bpytop it works on this way, it's my case, i have this in my /etc/fstab:

/dev/nvme0n1p1          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

/dev/nvme0n1p2          /               btrfs           rw,noatime,compress=zstd:3,ssd,space_cache=v2,user_subvol_rm_allowed,autodefrag,commit=300,subvol=/@root        0 0
/dev/nvme0n1p2          /home           btrfs           rw,noatime,compress=zstd:3,ssd,space_cache=v2,user_subvol_rm_allowed,autodefrag,commit=300,subvol=/@home        0 0
/dev/nvme0n1p2          /var            btrfs           rw,noatime,compress=zstd:3,ssd,space_cache=v2,user_subvol_rm_allowed,autodefrag,commit=300,subvol=/@var         0 0
/dev/nvme0n1p2          /.snapshots     btrfs           rw,noatime,compress=zstd:3,ssd,space_cache=v2,user_subvol_rm_allowed,autodefrag,commit=300,subvol=/@snapshots   0 0

subvolumes for / (root), /home, /var and /.snapshots directories

and i have this in bpytop

image

we like to have something similar with btop

@tau0-deltav
Copy link

I'd quite like this. I've spent quite a while fiddling with the exclude= option and various arrangements of "@/" and it's invariably all or nothing.

I think this is a bug, reporting unrestricted btrfs subvolumes as separate storage is just incorrect.

If displaying them correctly isn't trivial then it'd be better to not show them at all, because they crowd out my other devices and I am but a humble 1080peasant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants