Commit Graph

279 Commits (master)

Author SHA1 Message Date
Doug Schaapveld 63437da750
Remove PID zero condition from sample memfs (#131) 2022-09-27 17:14:28 +02:00
Mei Gui 226fec2ce9
Pass OpenFlags for OpenFileOp followups (#129) 2022-07-26 09:34:00 +02:00
Mei Gui 9cc4ff0bc9
Pass OpenFlags for OpenFileOp (#127) 2022-07-18 13:15:27 +02:00
Michael Stapelberg 48612565d5 GitHub Actions: upgrade to latest stable version of Go 1.17 2022-03-03 09:31:36 +01:00
Jakob Waibel 1b9b09fd17
feat: Remove duplicate code in test (#119) 2022-01-09 15:54:07 +01:00
Michael Stapelberg 7e446be212 fix memfs sample: use offset in fallocate call 2021-06-05 23:05:07 +02:00
Mei Gui 36e01f1b3a
Add pid in all fuse ops (#92)
Expose PID as metadata in CreateFile, OpenFile and FlushFile operations

This will help us with kahing/goofys#273

Co-authored-by: Sai Teja Suram <pratap130492@gmail.com>
Co-authored-by: Sai Teja Suram <pts@avah.dev>
2020-10-28 08:51:23 +01:00
Kane York ac0efb5a5a
posix_test: Reenable O_APPEND tests by using raw syscall (#88) 2020-07-05 10:42:22 +02:00
Michael Stapelberg ae5da07e4c
remove naked returns across the code base (#75)
fixes #73
2020-01-28 10:10:08 +01:00
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
Michael Stapelberg fbd48a3771 fix/skip tests for Go 1.13
See https://golang.org/doc/go1.13#os for the corresponding change.
2019-09-16 18:43:37 +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
Aaron Jacobs 6770eccb1c memfs_test: touch up the style of xattr tests. 2017-05-12 12:59:01 +10:00
Ka-Hing Cheung 3eadae8418 use constants from upstream PR 2017-05-11 14:50:20 -07:00
Ka-Hing Cheung d650fe34ba added tests and enhanced comments 2017-05-11 14:45:40 -07:00
Aaron Jacobs 2642d571aa memfs_test: pass on Go 1.8 and above, too.
This was broken by golang/go@321c312d82.
2016-12-19 15:07:56 +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 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
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 560105cab6 Fixed test failures on OS X. 2015-08-14 09:26:12 +10:00
Aaron Jacobs 2e6836708e Increased the slop in memfs_test. 2015-08-12 02:34:02 +00:00
Aaron Jacobs fee78b6548 Added comments for timeSlop. 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
Aaron Jacobs 9c33490a6c Removed clocks from memfs.go. 2015-08-11 06:33:19 +00:00
Aaron Jacobs 5296835c1f Fixed a dumb bug. 2015-07-29 10:12:59 +10: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 1878a13850 MemFSTest.RenameNonExistentFile 2015-06-25 21:58:10 +10:00
Aaron Jacobs 7fb4f4d34f MemFSTest.RenameOverExisting_WrongType 2015-06-25 21:57:17 +10:00
Aaron Jacobs a28c3afdfd MemFSTest.RenameOverExistingDirectory 2015-06-25 21:54:38 +10:00
Aaron Jacobs 76b311bdc2 MemFSTest.RenameOverExistingFile 2015-06-25 21:51:36 +10:00
Aaron Jacobs 542984f5bd MemFSTest.RenameIntoFileSystem 2015-06-25 21:48:45 +10:00
Aaron Jacobs a69cbc2139 MemFSTest.RenameOutOfFileSystem 2015-06-25 21:47:31 +10:00