nachoparker / btrfs-du

Easily print BTRFS subvolume/snapshot disk usage
GNU General Public License v3.0
112 stars 17 forks source link

Breaks with spaces in subvolume names #26

Open krzys-h opened 2 years ago

krzys-h commented 2 years ago

I made a subvolume called Phone backup with a space (it used to be a normal directory generated from a share name in syncthing, and I was too lazy to fix the path).

btrfs-du no longer works correctly after this - the subvolume name got split into two rows, and the usage values got misaligned:

Subvolume                                                         Total  Exclusive  ID        
─────────────────────────────────────────────────────────────────────────────────────────    
...  
Phone                                                          20.61GiB   20.61GiB  5325      
backup                                                        257.52GiB   48.00KiB  5328      
some_snapshot_of_257GB                                          2.16GiB   32.00KiB  5329      
some_snapshot_of_2GB                                           32.15GiB   48.00KiB  5330      
some_snapshot_of_32GB                                          16.43GiB   48.00KiB  5331      
(some_snapshot_of_16GB should be there, but it doesn't appear at all)
─────────────────────────────────────────────────────────────────────────────────────────