Commit Graph

1315 Commits (aa1fe8b2de8fa699fbce2daf5bd843a2aadafb2d)

Author SHA1 Message Date
Aaron Jacobs aa1fe8b2de Added support for handling statfs(2) and friends.
File systems must now handle StatFSOp in order to mount correctly on
OS X.

For GoogleCloudPlatform/gcsfuse#125.
2015-09-09 22:56:12 +10:00
Aaron Jacobs 57b4e8798f Fixed other tests on OS X. 2015-09-09 22:55:39 +10:00
Aaron Jacobs be680e1860 Fixed StatFSTest.CapacityAndFreeSpace on Linux. 2015-09-09 12:24:31 +00:00
Aaron Jacobs ca114f296a Fixed most tests on Linux. 2015-09-09 12:21:47 +00:00
Aaron Jacobs 56d0249304 Copied darwin-specific tests as linux-specific ones. 2015-09-09 12:16:44 +00:00
Aaron Jacobs 811100635f Isolated darwin-specific tests. 2015-09-09 22:13:58 +10:00
Aaron Jacobs 69c97c577e StatFSTest.UnsupportedBlockSizes 2015-09-09 22:10:37 +10:00
Aaron Jacobs c96d308a7a Set f_frsize, fixing free space calculation by `df` on OS X. 2015-09-09 22:04:10 +10:00
Aaron Jacobs 81a0bd26c3 Fixed some test bugs. 2015-09-09 21:50:37 +10:00
Aaron Jacobs 27a921775e Fixed file writing. 2015-09-09 21:45:28 +10:00
Aaron Jacobs 64cbdfea9a StatFSTest.WriteSize 2015-09-09 21:40:55 +10:00
Aaron Jacobs e2910a4dba StatFSTest.CapacityAndFreeSpace 2015-09-09 21:35:51 +10:00
Aaron Jacobs d5cd319abc Share code for canonicalizing the mount point. 2015-09-09 16:14:18 +10:00
Aaron Jacobs 55d02a11bf StatFSTest.Syscall_NonZeroValues 2015-09-09 16:12:12 +10:00
Aaron Jacobs 5b35935801 StatFSTest.Syscall_ZeroValues 2015-09-09 16:06:57 +10:00
Aaron Jacobs da3ee9802b statFS.StatFS 2015-09-09 13:42:15 +10:00
Aaron Jacobs b316df06d5 Added test names. 2015-09-09 13:41:35 +10:00
Aaron Jacobs 0b2038c1cd Added a test stub. 2015-09-09 13:38:54 +10:00
Aaron Jacobs bf33224aea Wrote much of package statfs. 2015-09-09 13:35:36 +10:00
Aaron Jacobs d435a1a091 Reverted changes to memfs.
statfs(2) is more involved than I expected, so this calls for its own
sample file system to test in a more focused manner.
2015-09-09 13:21:58 +10:00
Aaron Jacobs 212f7cdd8a Fixed another bug. 2015-09-09 09:54:31 +10:00
Aaron Jacobs 8771155822 Fixed a bug. 2015-09-09 09:53:43 +10:00
Aaron Jacobs df671c90c2 Fixed FileSystem.StatFS support. 2015-09-09 09:53:11 +10:00
Aaron Jacobs 6d0c2608dc memFS.StatFS 2015-09-09 09:52:41 +10:00
Aaron Jacobs 5921525aab Removed special handling of statfs. 2015-09-09 09:49:54 +10:00
Aaron Jacobs 4d5341f6ce Added FileSystem.StatFS. 2015-09-09 09:47:48 +10:00
Aaron Jacobs c49a7e13b7 Added and documented StatfsOp. 2015-09-09 09:46:24 +10:00
Aaron Jacobs 284ddf44b0 MemFSTest.Statfs 2015-09-09 09:28:05 +10:00
Aaron Jacobs ee4f4770b6 Fixed some out of date lock annotations. 2015-09-09 09:17:55 +10:00
Aaron Jacobs 560105cab6 Fixed test failures on OS X. 2015-08-14 09:26:12 +10:00
Aaron Jacobs 8f220f0e15 Fixed an out of date description. 2015-08-12 15:57:14 +10:00
Aaron Jacobs 7aa89d4d1f Added a missing full stop. 2015-08-12 14:47:30 +10:00
Aaron Jacobs 962e8e26d5 Enabled writeback caching by default.
This may bring significant performance improvements, but also comes with
some caveats. See the notes on MountConfig.DisableWritebackCaching for
details.
2015-08-12 12:42:00 +10:00
Aaron Jacobs 4f74c87df8 Updated a redundant code walk. 2015-08-12 12:41:29 +10:00
Aaron Jacobs 308cf97f7e Described what happens on OS X. 2015-08-12 02:36:11 +00:00
Aaron Jacobs 182c96da07 Fixed cachingfs. 2015-08-12 02:35:41 +00:00
Aaron Jacobs 2e6836708e Increased the slop in memfs_test. 2015-08-12 02:34:02 +00:00
Aaron Jacobs 89495b2e04 Allow opting out of writeback caching.
See the documentation on MountConfig.DisableWritebackCaching for
discussion.
2015-08-12 02:33:08 +00:00
Aaron Jacobs f40a24c8d5 Pay attention to DisableWritebackCaching. 2015-08-12 02:32:39 +00:00
Aaron Jacobs 842af25013 Added and documented MountConfig.DisableWritebackCaching. 2015-08-12 02:29:23 +00:00
Aaron Jacobs ed6f72d078 Updated a TODO. 2015-08-12 00:48:00 +00:00
Aaron Jacobs b0a4566c53 Fixed flushfs for writback caching. 2015-08-11 06:33:20 +00:00
Aaron Jacobs 373004db87 Stop using a clock for memfs mtimes.
We can't do this now that the kernel chooses mtimes and sends setattr
requests due to our use of writeback caching.
2015-08-11 06:33:20 +00:00
Aaron Jacobs e69b8a8c37 Implement setattr; otherwise closing after writing fails. 2015-08-11 06:33:20 +00:00
Aaron Jacobs fee78b6548 Added comments for timeSlop. 2015-08-11 06:33:20 +00:00
Aaron Jacobs eaa0177b80 Clean up mappings even on assertion failure. 2015-08-11 06:33:20 +00:00
Aaron Jacobs 0bc289ec1b Fixed some more mtime assertions. 2015-08-11 06:33:20 +00:00
Aaron Jacobs d6e247cc46 Fixed several mtime assertions. 2015-08-11 06:33:20 +00:00
Aaron Jacobs a6dd3d2147 Fixed memfs_test.go. 2015-08-11 06:33:20 +00:00
Aaron Jacobs eecd0fb964 Fixed inode.go. 2015-08-11 06:33:19 +00:00