rclone/cmd/mountlib
Nick Craig-Wood 29baa5888f mount: fix automount not detecting drive is ready
With automount the target mount drive appears twice in /proc/self/mountinfo.

    379 27 0:70 / /mnt/rclone rw,relatime shared:433 - autofs systemd-1 rw,fd=57,...
    566 379 0:90 / /mnt/rclone rw,nosuid,nodev,relatime shared:488 - fuse.rclone remote: rw,...

Before this fix we only looked for the mount once in
/proc/self/mountinfo. It finds the automount line and since this
doesn't have fs type rclone it concludes the mount isn't ready yet.

This patch makes rclone look through all the mounts and if any of them
have fs type rclone it concludes the mount is ready.

See: https://forum.rclone.org/t/systemd-mount-works-but-automount-does-not/42287/
2023-10-16 12:13:20 +01:00
..
check_linux.go mount: fix automount not detecting drive is ready 2023-10-16 12:13:20 +01:00
check_other.go mount: fix check for empty mount point on Linux #3562 2023-01-20 15:39:54 +00:00
help.go nfsmount: documentation for new NFS mount feature for macOS 2023-10-06 14:08:20 +01:00
mount.go docs: group the global flags and make them appear on command and flags pages 2023-08-02 12:53:09 +01:00
rc.go mount: error strings should not be capitalized 2023-03-26 14:28:15 +02:00
rc_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
sighup.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sighup_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
utils.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00