vfs: add context parameter to New() for config propagation

Add a ctx parameter to vfs.New() so callers can pass in context
carrying ConfigInfo and FilterInfo. The context is stripped of
cancellation but config and filter values are preserved into a fresh
background context.
This commit is contained in:
Nick Craig-Wood
2026-04-13 12:48:38 +01:00
parent 9f2edc3077
commit 7b8994ab32
22 changed files with 37 additions and 28 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ func (m *MountPoint) Mount() (mountDaemon *os.Process, err error) {
}
}
m.VFS = vfs.New(m.Fs, &m.VFSOpt)
m.VFS = vfs.New(context.Background(), m.Fs, &m.VFSOpt)
m.ErrChan, m.UnmountFn, err = m.MountFn(m.VFS, m.MountPoint, &m.MountOpt)
if err != nil {