Aaron Jacobs
e85990c143
Fixed permissions behavior in hellofs.
...
The tests were recently broken on Linux when default_permissions was set
when mounting. On Linux (but not on OS X), the uid sending the Init
request is root, so all of the files appear to be owned by root. This
was fine until we told the kernel to check permissions.
2015-03-17 16:35:31 +11:00
Aaron Jacobs
92569b4f77
Disabled entry caching on OS X by default, with an opt-in to re-enable it.
...
This fixes cachingfs tests on OS X, where the entry_valid field returned to
fuse is ignored and entries are cached potentially forever.
More info:
https://github.com/jacobsa/fuse/issues/1
https://github.com/osxfuse/osxfuse/issues/199
2015-03-17 16:31:11 +11:00
Aaron Jacobs
b851c516e3
Fixed AttributeCachingTest.StatMtimeStat_ViaPath on OS X.
2015-03-17 16:30:03 +11:00
Aaron Jacobs
038f8e49a2
Added a note on the EntryExpiration field.
2015-03-17 16:25:14 +11:00
Aaron Jacobs
6fe7f54829
Updated a few tests for darwin's special entry cache behavior.
2015-03-17 16:24:15 +11:00
Aaron Jacobs
b9b5a4f5fc
Updated MountConfig.bazilfuseOptions.
2015-03-17 16:22:19 +11:00
Aaron Jacobs
be35ff0dde
Set EnableVnodeCaching in the appropriate test.
2015-03-17 16:21:10 +11:00
Aaron Jacobs
2f64ad7f08
Added MountConfig.EnableVnodeCaching.
2015-03-17 16:19:13 +11:00
Aaron Jacobs
40519818d5
Clarified the expectations in a couple of tests.
2015-03-17 16:14:37 +11:00
Aaron Jacobs
255dbdc3a0
Set default_permissions when mounting.
...
This re-fixes MemFSTest.Mkdir_PermissionDenied on Linux after the recent
shakeup when changing the interface of Mount.
2015-03-17 16:07:09 +11:00
Aaron Jacobs
7572e06a1f
Set default_permissions when mounting.
2015-03-17 16:06:27 +11:00
Aaron Jacobs
69e2ba32b0
Switched to the jacobsa/bazilfuse fork of bazillion/fuse.
...
This is in preparation for using bazilfuse.SetOption for dealing with
issue #1 .
2015-03-17 15:55:10 +11:00
Aaron Jacobs
c713695871
Fixed broken tests using Mount.
2015-03-17 15:27:40 +11:00
Aaron Jacobs
8adb300b78
There are no supported options for now.
2015-03-17 15:25:48 +11:00
Aaron Jacobs
5129322fc2
Reworked the public interface for mount options.
2015-03-17 15:25:06 +11:00
Aaron Jacobs
2d10e03395
Switched import paths to the bazilfuse fork.
2015-03-17 15:03:11 +11:00
Aaron Jacobs
aa3d5840a3
Added some tests that cover entry and attribute caching.
...
The tests currently fail on OS X anywhere that they assume that entries won't
be cached.
For #1 .
2015-03-17 14:28:18 +11:00
Aaron Jacobs
69c73e39d4
AttributeCachingTest.StatMtimeStat_ViaFileDescriptor
2015-03-17 14:27:23 +11:00
Aaron Jacobs
c7db9c22ec
Fixed more test bugs.
2015-03-17 14:24:55 +11:00
Aaron Jacobs
440803fff6
Fixed some test bugs.
2015-03-17 14:24:13 +11:00
Aaron Jacobs
56cd06ab51
Implemented OpenDir and OpenFile.
2015-03-17 14:23:36 +11:00
Aaron Jacobs
8d1ca91bc9
AttributeCachingTest.StatRenumberMtimeStat_ViaFileDescriptor
2015-03-17 14:22:44 +11:00
Aaron Jacobs
0fe8ed1493
Fixed AttributeCachingTest.StatMtimeStat.
2015-03-17 14:16:10 +11:00
Aaron Jacobs
9ca89ca229
Added AttributeCachingTest.
2015-03-17 14:11:27 +11:00
Aaron Jacobs
ac34f0f721
Added EntryCachingTest.
2015-03-17 14:07:49 +11:00
Aaron Jacobs
b1ad507c85
NoCachingTest.StatRenumberMtimeStat
2015-03-17 14:02:16 +11:00
Aaron Jacobs
1aab442f8b
NoCachingTest.StatMtimeStat
2015-03-17 14:01:45 +11:00
Aaron Jacobs
ea6a65ae8e
NoCachingTest.StatRenumberStat
2015-03-17 13:59:48 +11:00
Aaron Jacobs
b07c1f4825
Refactored.
2015-03-17 13:58:56 +11:00
Aaron Jacobs
a3dcce8ed9
Fixed more test bugs.
2015-03-17 13:56:37 +11:00
Aaron Jacobs
e61d2fc9f6
Fixed some test bugs.
2015-03-17 13:55:42 +11:00
Aaron Jacobs
6490602460
NoCachingTest.StatStat
2015-03-17 13:55:04 +11:00
Aaron Jacobs
f1914f74b2
Finished writing BasicsTest.
2015-03-17 13:47:02 +11:00
Aaron Jacobs
dc5f8ae4bc
Implemented GetInodeAttributes.
2015-03-17 13:46:15 +11:00
Aaron Jacobs
968b5dd71a
Fixed an ID allocation bug.
2015-03-17 13:42:47 +11:00
Aaron Jacobs
bac78088be
BasicsTest.StatFoo
2015-03-17 13:40:11 +11:00
Aaron Jacobs
c8b0b0e822
BasicsTest.StatNonexistent
2015-03-17 13:38:51 +11:00
Aaron Jacobs
2051c13cc0
Simplified BasicsTest.StatNonexistent_Root.
2015-03-17 13:38:07 +11:00
Aaron Jacobs
9ee0551b8c
Fixed a bug.
2015-03-17 13:36:55 +11:00
Aaron Jacobs
241b9447fc
Expanded BasicsTest.StatNonexistent_Root.
2015-03-17 13:36:23 +11:00
Aaron Jacobs
ef4c7d5c8a
Implemented missing methods.
2015-03-17 13:35:47 +11:00
Aaron Jacobs
7cddc48c24
Fixed a build error.
2015-03-17 13:34:50 +11:00
Aaron Jacobs
cea0fb8b48
Refactored ID methods.
2015-03-17 13:33:32 +11:00
Aaron Jacobs
11724230a5
Implemented LookUpInode.
2015-03-17 13:32:35 +11:00
Aaron Jacobs
1b71593b34
Implemented RenumberInodes.
2015-03-17 13:25:46 +11:00
Aaron Jacobs
a9ebf7fe45
Implemented checkInvariants.
2015-03-17 13:25:27 +11:00
Aaron Jacobs
c6fab5488b
Implemented other ID methods.
2015-03-17 13:23:58 +11:00
Aaron Jacobs
19c26cc2e8
Implemented FooID.
2015-03-17 13:23:30 +11:00
Aaron Jacobs
8a4e3f242d
Reworked inode numbering.
2015-03-17 13:22:33 +11:00
Aaron Jacobs
064452dcc9
Simplified inode renumbering.
2015-03-17 13:14:19 +11:00