Commit Graph

857 Commits (ea1d0606dc69f61defc49073d3b5cb2176a697c0)

Author SHA1 Message Date
Aaron Jacobs ea1d0606dc Fixed cachingfs. 2015-06-05 14:22:29 +10:00
Aaron Jacobs afd13efb65 Fixed memfs. 2015-06-05 14:22:02 +10:00
Aaron Jacobs b791d33db0 Fixed fileSystemServer.handleOp. 2015-06-05 14:20:39 +10:00
Aaron Jacobs 78b00c64d9 Removed RespondToOp. 2015-06-05 14:19:30 +10:00
Aaron Jacobs f7952dbc64 Fixed forgetfs. 2015-06-05 14:18:39 +10:00
Aaron Jacobs 1573b41ff3 Fixed NotImplementedFileSystem. 2015-06-05 14:14:49 +10:00
Aaron Jacobs 48571ab6cb Updated the FileSystem interface. 2015-06-05 14:13:59 +10:00
Aaron Jacobs 3d04b93c8e Made more firm some wording about interrupt semantics.
Now that I have some references to cite.
2015-06-03 08:51:28 +10:00
Aaron Jacobs d800860713 Added ENOTDIR. 2015-05-26 10:47:21 +10:00
Aaron Jacobs c1f7e56cab Support setting a logger for fuse errors (but not other debug info).
For GoogleCloudPlatform/gcsfuse#60.
2015-05-25 14:23:25 +10:00
Aaron Jacobs b4469b5cff Renamed getLogger. 2015-05-25 14:19:28 +10:00
Aaron Jacobs 430fbb3099 Updated mounted_file_system.go. 2015-05-25 14:18:50 +10:00
Aaron Jacobs 438929753f Updated newConnection. 2015-05-25 14:17:16 +10:00
Aaron Jacobs f650aab183 Updated fuseops.Convert. 2015-05-25 14:16:19 +10:00
Aaron Jacobs 41f376af5f Added commonOp.errorLogger. 2015-05-25 14:15:49 +10:00
Aaron Jacobs e0db5cf622 Renamed existing debug logging functions. 2015-05-25 14:13:24 +10:00
Aaron Jacobs df7aea90d2 Added MountConfig.ErrorLogger. 2015-05-25 14:09:23 +10:00
Aaron Jacobs 1731a357d7 Added a missing file. 2015-05-21 16:52:27 +10:00
Aaron Jacobs aa62bac439 Made "create in parallel" tests reusable. 2015-05-21 15:43:41 +10:00
Aaron Jacobs 1e7620a379 Fixed up advice for handling already-exists cases when creating names.
Added tests that confirm behavior of "real" file systems, then made memfs make
those tests pass, too. Doing this by returning EEXIST appears to work on both
OS X and Linux, but I can't find documentation anywhere that says this is what
is expected.

More:
    https://github.com/osxfuse/osxfuse/issues/209
    http://stackoverflow.com/q/30364838/1505451
    http://sourceforge.net/p/fuse/mailman/message/34130996/
2015-05-21 15:30:37 +10:00
Aaron Jacobs bd4af3f5a5 Updated advice on create, symlink, and mkdir. 2015-05-21 15:30:08 +10:00
Aaron Jacobs 6777b1d99f Gave mkdir and symlink the same concurrency issues treatment. 2015-05-21 15:22:30 +10:00
Aaron Jacobs bc969387ca Fixed memfs bugs. 2015-05-21 15:22:26 +10:00
Aaron Jacobs 49a5ff2328 MemFSTest.SymlinkInParallel 2015-05-21 15:21:26 +10:00
Aaron Jacobs 7ec610e0be PosixTest.SymlinkInParallel 2015-05-21 15:21:05 +10:00
Aaron Jacobs e158bcfa17 MemFSTest.MkdirInParallel 2015-05-21 15:20:01 +10:00
Aaron Jacobs 2b71f8cbe8 PosixTest.MkdirInParallel 2015-05-21 15:19:39 +10:00
Aaron Jacobs b82157437e Fixed CreateFile concurrency issues in memfs. 2015-05-21 15:15:53 +10:00
Aaron Jacobs 150440d500 Return EEXIST from create. This appears to work, on OS X at least. 2015-05-21 15:14:16 +10:00
Aaron Jacobs 0407fb7690 Added memfs create in parallel tests. 2015-05-21 14:30:52 +10:00
Aaron Jacobs 4269d7cd47 Check for already existing in memFS.CreateFile. 2015-05-21 14:25:29 +10:00
Aaron Jacobs eafe864b8c Added tests demonstrating POSIX behavior when creating in parallel. 2015-05-21 14:25:02 +10:00
Aaron Jacobs 63888f4ddd PosixTest.CreateInParallel_Exclusive 2015-05-21 14:24:45 +10:00
Aaron Jacobs 25ded77e80 PosixTest.CreateInParallel_Truncate 2015-05-21 14:24:45 +10:00
Aaron Jacobs e69cd9188e Split out into a reusable function. 2015-05-21 14:24:45 +10:00
Aaron Jacobs e295ef6019 Fixed two test bugs. 2015-05-21 14:24:45 +10:00
Aaron Jacobs 113fabe937 Don't forget to close. 2015-05-21 14:24:44 +10:00
Aaron Jacobs acccaf1e28 PosixTest.CreateInParallel_NoTruncate 2015-05-21 14:24:44 +10:00
Aaron Jacobs f073423b67 Added test names. 2015-05-21 14:24:44 +10:00
Aaron Jacobs f385176a96 Renamed to memfs.go. 2015-05-21 13:23:18 +10:00
Aaron Jacobs 9a62061e63 Added support for symlinks in package fuse.
For GoogleCloudPlatform/gcsfuse#12.
2015-05-19 16:09:25 +10:00
Aaron Jacobs caca93f6f9 Added ReadSymlinkOp. 2015-05-19 16:08:57 +10:00
Aaron Jacobs 3086e28fe4 Fixed a bug. 2015-05-19 16:08:50 +10:00
Aaron Jacobs a6e14f1878 Fixed a bug. 2015-05-19 16:08:13 +10:00
Aaron Jacobs c75db4a11f memFS.ReadSymlin 2015-05-19 16:07:53 +10:00
Aaron Jacobs 05091dee19 Added file system support. 2015-05-19 16:06:57 +10:00
Aaron Jacobs aa6498ca1b Added convert support. 2015-05-19 16:05:54 +10:00
Aaron Jacobs 83baabeaf5 Added ReadSymlinkOp. 2015-05-19 16:05:01 +10:00
Aaron Jacobs 589723ca4e Tightened up symlink tests, in particular around removing. 2015-05-19 16:02:25 +10:00
Aaron Jacobs 32c4d03ad1 Clarify that UnlinkOp applies to directories, too. 2015-05-19 16:02:20 +10:00