From 1b11326ecdd788fccc8e396b7467bbbb591d563f Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Thu, 30 Jul 2020 15:00:42 -0700 Subject: Call lseek(0, SEEK_CUR) unconditionally in runsc fsgofer's Readdir(offset=0). 9P2000.L is silent as to how readdir RPCs interact with directory mutation. The most performant option is for Treaddir with offset=0 to restart iteration, avoiding needing to walk+open+clunk a new directory fid between invocations of getdents64(2), and the VFS2 gofer client assumes this is the case. Make this actually true for the runsc fsgofer. Fixes #3344, #3345, #3355 PiperOrigin-RevId: 324090384 --- images/basic/hostoverlaytest/copy_up_testfile.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 images/basic/hostoverlaytest/copy_up_testfile.txt (limited to 'images/basic/hostoverlaytest/copy_up_testfile.txt') diff --git a/images/basic/hostoverlaytest/copy_up_testfile.txt b/images/basic/hostoverlaytest/copy_up_testfile.txt new file mode 100644 index 000000000..e4188c841 --- /dev/null +++ b/images/basic/hostoverlaytest/copy_up_testfile.txt @@ -0,0 +1 @@ +old data -- cgit v1.2.3