On Fri, Nov 27, 2020 at 04:30:32PM -0300, Marcos Paulo de Souza wrote:
From: Marcos Paulo de Souza <redacted>
In this forth iteration, only patch 0002 was changed. Previously the variable
full_path, which is passed by the user, was being overwritten in the inode loop.
Now we create a temp var to store the mount_point when the lookup is needed.
Please review.
Changes from v3:
* In patch 0002, do not overwrite full_path variable
For the record, patches have been reworked as there some differences
between kernels 5.3 and 5.8 regarding bind mounts and what is printed in
/proc/ mounts due to 3ef3959b29c4 ("btrfs: don't show full path of bind
mounts in subvol=").
New version uses libmount to parse the information and distinguish
subvol= mounts and bind mounts. With a test.