diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-18 16:07:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-18 16:07:05 +0000 |
commit | 9de68043457262a32956e7f51ebc4a5f2c0f5c8b (patch) | |
tree | ef623d89ec7fd80cf2c35c53b47868ad1b5cac39 /pkg/sentry/fs/filesystems.go | |
parent | 356e6b7c281e4da83b1b2e0316b3131f2833ed19 (diff) | |
parent | 3970c127434817304f67a2ad192cbe8094ad3353 (diff) |
Merge release-20200608.0-83-g3970c1274 (automated)
Diffstat (limited to 'pkg/sentry/fs/filesystems.go')
-rw-r--r-- | pkg/sentry/fs/filesystems.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/sentry/fs/filesystems.go b/pkg/sentry/fs/filesystems.go index 084da2a8d..d41f30bbb 100644 --- a/pkg/sentry/fs/filesystems.go +++ b/pkg/sentry/fs/filesystems.go @@ -87,20 +87,6 @@ func RegisterFilesystem(f Filesystem) { filesystems.registered[f.Name()] = f } -// UnregisterFilesystem removes a file system from the global set. To keep the -// file system set compatible with save/restore, UnregisterFilesystem must be -// called before save/restore methods. -// -// For instance, packages may unregister their file system after it is mounted. -// This makes sense for pseudo file systems that should not be visible or -// mountable. See whitelistfs in fs/host/fs.go for one example. -func UnregisterFilesystem(name string) { - filesystems.mu.Lock() - defer filesystems.mu.Unlock() - - delete(filesystems.registered, name) -} - // FindFilesystem returns a Filesystem registered at name or (nil, false) if name // is not a file system type that can be found in /proc/filesystems. func FindFilesystem(name string) (Filesystem, bool) { |