Commit f44bf6e
committed
fix(fly): warm rclone dir cache after activate to avoid first-readdir race
`rclone mount --daemon` returns immediately after fork; FUSE's first
readdir on the mountpoint root then races the daemon's first remote
listing fetch. The agent's first `ls` could observe an empty directory
even though the mount is live. Add a single throw-away `ls` inside
`_verify_mount_active` after `mountpoint -q` passes — its only purpose
is the side effect of priming rclone's directory cache so subsequent
listings see the bucket contents immediately.
Verified end-to-end: previously the first listing would briefly show
empty for ~half a second; with the warmup, the very first agent-side
listing returns the populated mount.1 parent 1517a66 commit f44bf6e
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
| 1697 | + | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1701 | 1705 | | |
1702 | 1706 | | |
| 1707 | + | |
1703 | 1708 | | |
1704 | 1709 | | |
1705 | 1710 | | |
| |||
1711 | 1716 | | |
1712 | 1717 | | |
1713 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
1714 | 1735 | | |
1715 | 1736 | | |
1716 | 1737 | | |
| |||
0 commit comments