Commit Graph

1500 Commits (master)

Author SHA1 Message Date
Aaron Jacobs 4e169a0602 Implemented memFS.OpenFile. 2015-03-05 19:37:36 +11:00
Aaron Jacobs 26d91ad9d7 Fixed a broken invariant. 2015-03-05 19:36:09 +11:00
Aaron Jacobs 7bb6fe37d2 Added an invariant for inode size. 2015-03-05 19:35:32 +11:00
Aaron Jacobs 163b303731 Implemented memFS.WriteFile. 2015-03-05 19:33:10 +11:00
Aaron Jacobs fcf3be2896 PosixTest.ReadsPastEndOfFile 2015-03-05 19:26:24 +11:00
Aaron Jacobs 95a89e5302 PosixTest.WriteAtDoesntChangeOffset_AppendMode 2015-03-05 19:22:32 +11:00
Aaron Jacobs 49bead83fa PosixTest.WriteAtDoesntChangeOffset_NotAppendMode 2015-03-05 19:21:20 +11:00
Aaron Jacobs 0c5ea8464f PosixTest.WriteStartsPastEndOfFile 2015-03-05 19:18:34 +11:00
Aaron Jacobs 526ec9a968 PosixTest.WriteStartsAtEndOfFile 2015-03-05 19:18:18 +11:00
Aaron Jacobs 5dab658073 PosixTest.WriteOverlapsEndOfFile 2015-03-05 19:17:57 +11:00
Aaron Jacobs 541980129d Added some test names. 2015-03-05 19:10:25 +11:00
Aaron Jacobs e435f6916c Added test setup and tear-down code. 2015-03-05 19:08:48 +11:00
Aaron Jacobs 9fd18f53f4 Began on a test to help confirm posix file behavior. 2015-03-05 19:06:43 +11:00
Aaron Jacobs d8fa4817cc Documented pwrite semantics. 2015-03-04 15:23:31 +11:00
Aaron Jacobs 5455e35b35 Added server support for WriteFile. 2015-03-04 15:18:09 +11:00
Aaron Jacobs 0e4bdb538a Added NotImplementedFileSystem.WriteFile. 2015-03-04 15:16:55 +11:00
Aaron Jacobs dcf4c93dfd Added a WriteFile method. 2015-03-04 15:16:29 +11:00
Aaron Jacobs 87f8ec9ead MemFSTest.CreateNewFile_InRoot 2015-03-04 15:10:26 +11:00
Aaron Jacobs 9c585268b0 Performed a TODO. 2015-03-04 15:06:40 +11:00
Aaron Jacobs c9298a943a Implemented memFS.CreateFile. 2015-03-04 15:05:58 +11:00
Aaron Jacobs 1a975d9824 Declared some test names. 2015-03-04 15:03:44 +11:00
Aaron Jacobs bdefba3822 Added server support for CreateFile. 2015-03-04 14:57:53 +11:00
Aaron Jacobs 1aba7cb8a8 Added NotImplementedFileSystem.CreateFile. 2015-03-04 14:55:50 +11:00
Aaron Jacobs fd9dbe872e Refactored ChildInodeEntry comments. 2015-03-04 14:55:16 +11:00
Aaron Jacobs efe4481b2a Added a CreateFile method. 2015-03-04 14:54:11 +11:00
Aaron Jacobs 8fc315cf58 MemFSTest.CaseSensitive 2015-03-04 14:21:56 +11:00
Aaron Jacobs b2a8322aaa Fixed copyright notices. 2015-03-04 08:27:42 +11:00
Aaron Jacobs e0774d1f4b Added support for rmdir, and memfs tests. 2015-03-03 16:15:32 +11:00
Aaron Jacobs a956166291 Deleted MemFSTest.Rmdir_ReusesInodeID.
At least on OS X, the kernel doesn't relaibly send a Forget request
right after RmDir, even if the directory is not open. (This is contrary
to what the fuse low-level ops documentation says.) So there's no way to
reliably test this.
2015-03-03 16:14:37 +11:00
Aaron Jacobs dd66a1d2bb Expanded an example. 2015-03-03 15:17:04 +11:00
Aaron Jacobs eec88dd31a Disabled a test that cannot pass. 2015-03-03 15:15:58 +11:00
Aaron Jacobs 147be0630d Added tests for the Nlink field. 2015-03-03 15:04:49 +11:00
Aaron Jacobs 651984dc1a Only mark as unlinked in rmdir. 2015-03-03 14:56:55 +11:00
Aaron Jacobs 140bd18863 Fixed a silly test bug. 2015-03-03 14:54:22 +11:00
Aaron Jacobs 8d9962ee62 MemFSTest.Rmdir_OpenedForReading 2015-03-03 14:52:03 +11:00
Aaron Jacobs d8905b0d05 Deallocate removed directories. 2015-03-03 14:48:21 +11:00
Aaron Jacobs 3076da562e Fixed an inode invariants bug. 2015-03-03 14:45:39 +11:00
Aaron Jacobs 2773133448 MemFSTest.Rmdir_ReusesInodeID 2015-03-03 14:43:06 +11:00
Aaron Jacobs 01371975df Check for empty in rmdir. 2015-03-03 14:39:29 +11:00
Aaron Jacobs 98f868c319 MemFSTest.Rmdir_NonEmpty 2015-03-03 14:34:28 +11:00
Aaron Jacobs ea5370d6f1 MemFSTest.Rmdir_NonExistent 2015-03-03 14:33:20 +11:00
Aaron Jacobs 4d18942456 Re-use dirent gaps. 2015-03-03 14:31:15 +11:00
Aaron Jacobs 622d7a176b Preserve the offset invariant. 2015-03-03 14:30:14 +11:00
Aaron Jacobs 400d74dbdd Implemented inode.RemoveChild. 2015-03-03 14:29:49 +11:00
Aaron Jacobs 621df57d80 Refactored inode.LookUpChild. 2015-03-03 14:23:46 +11:00
Aaron Jacobs 57cb4ccda3 Outlined memFS.RmDir. 2015-03-03 11:28:41 +11:00
Aaron Jacobs 63408f6a0d Added an RmDir method. 2015-03-03 11:25:50 +11:00
Aaron Jacobs 9f984e1aa6 Declared a test. 2015-03-03 11:12:50 +11:00
Aaron Jacobs baffc23ee6 MemFSTest.Rmdir_Empty 2015-03-03 11:09:36 +11:00
Aaron Jacobs 19f7ef25c9 Fixed permissions issues in memfs, making the package support doing so. 2015-03-03 11:08:34 +11:00