mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
8c10dee510
Current way of checking whether mountpoint has been already mounted (directory list) can result in race if rclone runs under Automount (classic or systemd). This patch adopts Linux ProcFS for the check. Note that mountpoint is considered empty if it's tagged as "mounted" by autofs. Also ProcFS is used to check whether rclone mount was successful (ie. tagged by a string containing "rclone"). On macOS/BSD where ProcFS is unavailable the old method is still used. This patch also moves a few utility functions unchanged to utils.go: CheckOverlap, CheckAllowings, SetVolumeName. |
||
---|---|---|
.. | ||
check_linux.go | ||
check_other.go | ||
daemon_unix.go | ||
daemon.go | ||
help.go | ||
mount.go | ||
rc_test.go | ||
rc.go | ||
sighup_unsupported.go | ||
sighup.go | ||
utils.go |