-
-
Notifications
You must be signed in to change notification settings - Fork 440
Open
Description
On my system, I have use LVM for my filesystem and one logical volume I have is named var-log since it's mounted in /var/log. This causes duf to incorrectly display it as /dev/vg-var-/log due to the regex at
Line 112 in b9b8077
| re := regexp.MustCompile(`^/dev/mapper/(.*)-(.*)`) |
/dev/vg/var-log. I suggest that if more than 1 hyphen is detected, just display the full /dev/mapper path since it could be possible that the volume group also contains a hyphen, so using a lazy quantifier is not necessarily the solution.
EDIT: its full path is /dev/mapper/vg-var--log, so a regex of ^/dev/mapper/(.*?[^-])?-([^-].*)?$ should work (haven't tested this)
Metadata
Metadata
Assignees
Labels
No labels