Aaron Jacobs
addbb4663b
Refactored tests in samples/ to share a bunch of boilerplate.
2015-03-20 11:14:53 +11:00
Aaron Jacobs
ba6909e398
Fixed an out of date name.
2015-03-20 11:14:45 +11:00
Aaron Jacobs
8f8b5c9c44
Converted memfs_test.
2015-03-20 11:11:20 +11:00
Aaron Jacobs
abeaf77890
Added a ToClose field.
2015-03-20 11:10:04 +11:00
Aaron Jacobs
0b43e99333
Use the names SetUp and TearDown so that ogletest doesn't run them.
2015-03-20 11:07:43 +11:00
Aaron Jacobs
f099d9868f
Updated hello_fs_test.
2015-03-20 10:50:36 +11:00
Aaron Jacobs
08f495e8b0
Refactored SampleTest.Destroy.
2015-03-20 10:47:46 +11:00
Aaron Jacobs
03f5453297
Oops, use t.Ctx.
2015-03-20 10:46:20 +11:00
Aaron Jacobs
bdfb8cacce
SampleTest.Destroy.
2015-03-20 10:46:02 +11:00
Aaron Jacobs
5e5a2d3356
SampleTest.Initialize
2015-03-20 10:44:50 +11:00
Aaron Jacobs
0ce062dde3
Declared a helper struct for sample tests.
2015-03-20 10:40:34 +11:00
Aaron Jacobs
8d0ce150a0
Updated import paths after the repo move.
2015-03-19 12:39:47 +11:00
Aaron Jacobs
be63bc9622
Better nailed down posix and Linux append mode pwrite semantics.
2015-03-18 16:16:50 +11:00
Aaron Jacobs
76226f19f5
Updated PosixTest.WriteStartsPastEndOfFile_AppendMode for Linux.
2015-03-18 16:16:24 +11:00
Aaron Jacobs
e011f89d97
PosixTest.WriteStartsPastEndOfFile_AppendMode
2015-03-18 16:13:28 +11:00
Aaron Jacobs
68d48f6197
Added an Nlink field and updated tests and samples to use it.
...
For #2 .
2015-03-18 14:15:41 +11:00
Aaron Jacobs
cd4980bf7d
Uncommented unlink tests.
2015-03-18 14:14:46 +11:00
Aaron Jacobs
1a27522693
Added cachingfs support for nlink.
2015-03-18 14:14:19 +11:00
Aaron Jacobs
7120eb1f3d
Added memfs support for nlink.
2015-03-18 14:13:37 +11:00
Aaron Jacobs
7e8f3266ef
Added hellofs support for nlink.
2015-03-18 14:11:36 +11:00
Aaron Jacobs
08b7f22d0a
Added server support for Nlink.
2015-03-18 14:10:24 +11:00
Aaron Jacobs
cf86ea52d1
Added an InodeAttributes.Nlink field.
2015-03-18 14:09:30 +11:00
Aaron Jacobs
33e35f568b
Tightened up nlink-related tests for sample file systems.
...
These are currently failing due to bazillion/fuse@58c769a . See #2 .
2015-03-18 14:07:26 +11:00
Aaron Jacobs
c1c54788fb
Updated a comment that used to be a TODO.
2015-03-18 13:58:23 +11:00
Aaron Jacobs
12dc132805
Added a callout to osxfuse/osxfuse#199 in comments for Open{File,Dir}.
2015-03-18 12:52:05 +11:00
Aaron Jacobs
0d8ca8e6fb
Improved wording around EnableVnodeCaching.
2015-03-17 16:39:48 +11:00
Aaron Jacobs
6baf50c6d4
Removed an out of date TODO.
2015-03-17 16:37:48 +11:00
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