Commit Graph

35 Commits (4898d79241b8d92d15e326b0f267ecd54c133e0c)

Author SHA1 Message Date
Ka-Hing Cheung 4898d79241 plumb through Fd in setattr (#67)
this allows us to distinguish between truncate vs ftruncate
2019-12-11 09:49:03 +01:00
Ka-Hing Cheung e7bcad2083 fix getxattr and listxattr (#72)
previously, this will fail if /mnt/file doesn't have an xattr:

```
listxattr("/mnt/file", 0x7fe8b3686830, 256) = -1 EIO (Input/output error)
```

We should be returning the actual size only if the input size is
zero. Related issue is if the filesystem returns ERANGE, we should
propagate that error instead of returning the actual size.

Replaced go-xattr usage with x/sys/unix so we can test this.
2019-12-11 09:41:37 +01:00
Ka-Hing Cheung 4ee1cf7f62 add support for fallocate (#66)
* Fallocate support

* use fallocate wrapper that works on darwin
2019-10-26 10:15:00 +02:00
Functionary Robot cd3959611b samples/memfs: fix errors found by vet 2018-04-17 15:43:21 +10:00
Arran Walker 5ee7049312 replace imports of "golang.org/x/net/context" with "context" 2018-02-07 19:18:23 +00:00
Srdjan Rilak 4ee295e334 Add tests for hard link 2017-11-30 16:30:32 +01:00
Ka-Hing Cheung d650fe34ba added tests and enhanced comments 2017-05-11 14:45:40 -07:00
Aaron Jacobs 67e4fbbc5f Added memFS.MkNode. 2015-12-14 23:40:13 +00:00
Aaron Jacobs 57b4e8798f Fixed other tests on OS X. 2015-09-09 22:55:39 +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 6d0c2608dc memFS.StatFS 2015-09-09 09:52:41 +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 9c33490a6c Removed clocks from memfs.go. 2015-08-11 06:33:19 +00:00
Aaron Jacobs 339bc03e5e Attempted to fix memfs. 2015-07-29 10:12:11 +10:00
Aaron Jacobs dfb1b2d881 Fixed package memfs. 2015-07-27 15:15:53 +10:00
Aaron Jacobs 84c827f980 Stop using fuseops.Header in memfs. 2015-07-24 09:37:57 +10:00
Aaron Jacobs 515cdb41a8 Fixed a bug in memfs renaming. 2015-06-25 22:01:56 +10:00
Aaron Jacobs f7f7ac8ff6 Fixed build errors. 2015-06-25 21:40:42 +10:00
Aaron Jacobs 5532e21b56 Fixed build errors. 2015-06-25 21:39:10 +10:00
Aaron Jacobs 1d764bcde0 Mostly implemented Rename. 2015-06-25 21:38:39 +10:00
Aaron Jacobs f31cd5eb0a Added a snooping implementation. 2015-06-25 21:38:39 +10:00
Aaron Jacobs c7c0b23bc0 Fixed up memfs.go. 2015-06-25 21:37:29 +10:00
Aaron Jacobs a365c6c2cb Removed inode.mu. 2015-06-25 21:35:09 +10:00
Aaron Jacobs bb3046cdaa Unified a duplicate pair of methods in memfs. 2015-06-25 16:16:48 +10:00
Aaron Jacobs 3103bb22a1 Updated samples. 2015-06-22 12:31:25 +10:00
Aaron Jacobs 1939992b46 Reference package syncutil in its new location. 2015-06-15 08:27:39 +10:00
Aaron Jacobs 6d19754c38 Reference package timeutil in its new location. 2015-06-15 08:11:28 +10:00
Aaron Jacobs afd13efb65 Fixed memfs. 2015-06-05 14:22:02 +10:00
Aaron Jacobs bc969387ca Fixed memfs bugs. 2015-05-21 15:22:26 +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 4269d7cd47 Check for already existing in memFS.CreateFile. 2015-05-21 14:25:29 +10:00
Aaron Jacobs f385176a96 Renamed to memfs.go. 2015-05-21 13:23:18 +10:00