From b26276b416cfa3da9b044ddebff61151f0195487 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 13 Dec 2018 11:22:40 +0000 Subject: [PATCH] union: fix poll-interval not working - fixes #2837 Before this change the union remote was using whether the writable union could poll for changes to decide whether the union mount could poll for changes. The fix causes the union backend to signal it can poll for changes if **any** of the remotes can poll for changes. --- backend/union/union.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/union/union.go b/backend/union/union.go index f080a9fcd..fa2dc37c1 100644 --- a/backend/union/union.go +++ b/backend/union/union.go @@ -376,6 +376,11 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { }).Fill(f) features = features.Mask(f.wr) // mask the features just on the writable fs + // Really need the union of all remotes for these, so + // re-instate and calculate separately. + features.ChangeNotify = f.ChangeNotify + features.DirCacheFlush = f.DirCacheFlush + // FIXME maybe should be masking the bools here? // Clear ChangeNotify and DirCacheFlush if all are nil