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

Handle devices that are mounted at multiple paths #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgoll
Copy link

@sgoll sgoll commented Dec 31, 2021

This PR improves processing when findmnt returns more than a single mount path for a device. This may happen when the same device has been mounted multiple times, e.g. via bind mounts or btrfs subvolume mounts.

The menu shows each mount path in brackets. In the submenu there is a separate line for each mount path. When all devices have only a single mount path, the output is the same as before.

bashmount-2a

bashmount-2b

Fixes #31

@sgoll sgoll force-pushed the master branch 2 times, most recently from 60f432e to 9365303 Compare December 31, 2021 04:26
koonix pushed a commit to koonix/bashmount that referenced this pull request Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra line breaks in devices that are mounted multiple times
1 participant