Commit Graph

1335 Commits (608feace05097efdad15b7c5f36e0604c53c4abe)

Author SHA1 Message Date
Aaron Jacobs 608feace05 Add fusetesting.GetTimes.
This makes it easier to write integration tests for atime, ctime, and
mtime on both darwin and linux.
2016-01-11 10:27:55 +11:00
Aaron Jacobs 5595fe0920 Implement GetTimes for linux. 2016-01-10 23:27:28 +00:00
Aaron Jacobs 850146a678 Add GetTimes, implemented for darwin. 2016-01-11 10:26:22 +11:00
Aaron Jacobs 895b8c4155 Added support for mknod(2) and related calls to fuse_mknod.
For googlecloudplatform/gcsfuse#137.
2015-12-15 10:55:29 +11:00
Aaron Jacobs ab9f5b35ca Fixed a silly test bug. 2015-12-14 23:40:46 +00:00
Aaron Jacobs 67e4fbbc5f Added memFS.MkNode. 2015-12-14 23:40:13 +00:00
Aaron Jacobs 47638fa8c7 Added FileSystem support. 2015-12-14 23:35:40 +00:00
Aaron Jacobs f5dc8c356e Added conversion support. 2015-12-14 23:34:09 +00:00
Aaron Jacobs 15b31ee0ee Added MkNodeOp. 2015-12-14 23:30:42 +00:00
Aaron Jacobs 31e0f8e466 Added integration tests for googlecloudplatform/gcsfuse#137. 2015-12-15 10:15:48 +11:00
Aaron Jacobs 6afe951ee0 Fixed build errors. 2015-12-15 10:15:48 +11:00
Aaron Jacobs 4db81d4495 Pasted MknodTest from googlecloudplatform/gcsfuse@ff8a3f0. 2015-12-15 10:15:40 +11:00
Andrew Gaul 1dcc6791f0 Report physical blocks used
Tools like du and ls -l use this value to calculate the space used.
Force block size to 512 bytes for simplicity and compatibility with
Mac OS X which uses an older FUSE.
2015-10-22 18:57:08 -07:00
Aaron Jacobs bc664bf39b Allow the user to independently set block size and IO size.
On OS X we can't set block size above 2^17, but we want to encourage
users to send large reads and writes.

For GoogleCloudPlatform/gcsfuse#125.
2015-09-10 13:55:51 +10:00
Aaron Jacobs 246d37a0ba Updated Linux tests for the new behavior. 2015-09-10 03:54:29 +00:00
Aaron Jacobs 6565b52bcb Fixed the documentation to match reality on darwin. 2015-09-10 13:51:07 +10:00
Aaron Jacobs 33a476cafc Attempt to do what the documentation now says. 2015-09-10 13:43:12 +10:00
Aaron Jacobs 7c543380ea Add tests for the newly-documented behavior on Darwin. 2015-09-10 13:41:26 +10:00
Aaron Jacobs 81c3047f0f Revised the public StatFSOp docs for the BlockSize/IoSize split. 2015-09-10 13:31:04 +10:00
Aaron Jacobs e59a45f154 Added support for setting the OS X volume name.
While I was at it, added tests for fsname. I can't figure out how to
test the volume name.

For GoogleCloudPlatform/gcsfuse#125.
2015-09-09 23:07:07 +10:00
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