From 1279ad880cd6d99f66fa916177362a37a4e8b8fe Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Mon, 3 Apr 2023 09:15:24 -0700 Subject: [PATCH] Remove bind code path in mount() Signed-off-by: Gabriel Adrian Samfira --- mount/mount_windows.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mount/mount_windows.go b/mount/mount_windows.go index 7e527c8df..e7d5a5113 100644 --- a/mount/mount_windows.go +++ b/mount/mount_windows.go @@ -49,13 +49,6 @@ func (m *Mount) ReadOnly() bool { // Mount to the provided target. func (m *Mount) mount(target string) (retErr error) { - if m.Type == "bind" { - if err := bindfilter.ApplyFileBinding(target, m.Source, m.ReadOnly()); err != nil { - return fmt.Errorf("failed to bind-mount to %s: %w", target, err) - } - return nil - } - if m.Type != "windows-layer" { return fmt.Errorf("invalid windows mount type: '%s'", m.Type) }