diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-10-31 11:27:10 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-10-31 11:28:27 -0700 |
commit | ccc3d7ca11a2a623587c651a6690aaa46d2c2665 (patch) | |
tree | baa04e2e5ebe4a1ee638dbfbbd86dbcbc613696c /runsc/fsgofer/fsgofer_test.go | |
parent | e9dbd5ab67bc31e59910930e6c1b551c0fd05ee6 (diff) |
Make lazy open the mode of operation for fsgofer
With recent changes to 9P server, path walks are now safe inside
open, create, rename and setattr calls. To simplify the code, remove
the lazyopen=false mode that was used for bind mounts, and converge
all mounts to using lazy open.
PiperOrigin-RevId: 219508628
Change-Id: I073e7e1e2e9a9972d150eaf4cb29e553997a9b76
Diffstat (limited to 'runsc/fsgofer/fsgofer_test.go')
-rw-r--r-- | runsc/fsgofer/fsgofer_test.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/runsc/fsgofer/fsgofer_test.go b/runsc/fsgofer/fsgofer_test.go index 34033245b..f799b1e25 100644 --- a/runsc/fsgofer/fsgofer_test.go +++ b/runsc/fsgofer/fsgofer_test.go @@ -48,14 +48,8 @@ var ( // allConfs is set in init() above. allConfs []Config - rwConfs = []Config{ - {ROMount: false, LazyOpenForWrite: false}, - {ROMount: false, LazyOpenForWrite: true}, - } - roConfs = []Config{ - {ROMount: true, LazyOpenForWrite: false}, - {ROMount: true, LazyOpenForWrite: true}, - } + rwConfs = []Config{{ROMount: false}} + roConfs = []Config{{ROMount: true}} ) type state struct { @@ -66,7 +60,7 @@ type state struct { } func (s state) String() string { - return fmt.Sprintf("lazyopen(%v)-%v", s.conf.LazyOpenForWrite, s.ft) + return fmt.Sprintf("type(%v)", s.ft) } func runAll(t *testing.T, test func(*testing.T, state)) { |