Doug Schaapveld
63437da750
Remove PID zero condition from sample memfs ( #131 )
6 months ago
Michael Stapelberg
66d6bd9e7b
gofmt with Go 1.19
7 months ago
Mei Gui
226fec2ce9
Pass OpenFlags for OpenFileOp followups ( #129 )
8 months ago
Mei Gui
9cc4ff0bc9
Pass OpenFlags for OpenFileOp ( #127 )
9 months ago
Michael Stapelberg
48612565d5
GitHub Actions: upgrade to latest stable version of Go 1.17
1 year ago
Vitaliy Filippov
84920d11dd
Add vectored read to readbenchfs
...
You can now run `./readbenchfs --mount_point dir --vectored` and then
`dd if=dir/test of=/dev/null iflag=direct bs=1M status=progress` to test
vectored read speed.
Results from my laptop (Linux 5.10):
1 core (GOMAXPROCS=1):
- Before vectored read patch: 2.1 GB/s
- Non-vectored read after vectored read patch: 2.1 GB/s
- Vectored read: 2.8 GB/s
All cores:
- Before vectored read patch: 3.0 GB/s
- Non-vectored read after vectored read patch: 3.3 GB/s
- Vectored read: 5.9 GB/s
1 year ago
Vitaliy Filippov
da71c70600
Add ReadBenchFS to test linear read speed
1 year ago
Jakob Waibel
c4197873da
Create mount_memfs sample ( #121 )
1 year ago
Jakob Waibel
1b9b09fd17
feat: Remove duplicate code in test ( #119 )
1 year ago
Kurt Jensen
d82237972e
Add support for max_pages and increase to 256 ( #96 )
...
* Bump protocol version to min 7.28, max 7.31
* Increase read/write buffer size to 1MiB
* Add new fields to initOp
* Set FUSE_MAX_PAGES flag for init
* Lower min minor version to 19 for osxfuse
* Fix linux WriteSize test
2 years ago
Michael Stapelberg
8edaf5989f
skip failing test for now
2 years ago
Michael Stapelberg
fac69e018f
statfs sample: add missing locking
2 years ago
Michael Stapelberg
7e446be212
fix memfs sample: use offset in fallocate call
2 years ago
Liri S
9677d03922
Added samples/roloopbackfs ( #95 )
2 years ago
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>
2 years ago
Kane York
ac0efb5a5a
posix_test: Reenable O_APPEND tests by using raw syscall ( #88 )
3 years ago
Brendan McMillion
9ed0e37421
Fix tests on MacOS. ( #86 )
3 years ago
Michael Stapelberg
1d001802f7
add samples/mount_hello executable
...
This is a simple program to verify that the FUSE library itself works,
easier to run than the existing samples/mount with flushfs.
3 years ago
Michael Stapelberg
ae5da07e4c
remove naked returns across the code base ( #75 )
...
fixes #73
3 years ago
Ka-Hing Cheung
4898d79241
plumb through Fd in setattr ( #67 )
...
this allows us to distinguish between truncate vs ftruncate
3 years ago
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.
3 years ago
Ka-Hing Cheung
4ee1cf7f62
add support for fallocate ( #66 )
...
* Fallocate support
* use fallocate wrapper that works on darwin
3 years ago
Michael Stapelberg
cd3c1bb470
flush_fs_test: match another error message
4 years ago
Michael Stapelberg
fbd48a3771
fix/skip tests for Go 1.13
...
See https://golang.org/doc/go1.13#os for the corresponding change.
4 years ago
Michael Stapelberg
90d933551c
fix formatting directives (to pass go test)
4 years ago
Functionary Robot
cd3959611b
samples/memfs: fix errors found by vet
5 years ago
Arran Walker
5ee7049312
replace imports of "golang.org/x/net/context" with "context"
5 years ago
Srdjan Rilak
4ee295e334
Add tests for hard link
5 years ago
Aaron Jacobs
6770eccb1c
memfs_test: touch up the style of xattr tests.
6 years ago
Ka-Hing Cheung
3eadae8418
use constants from upstream PR
6 years ago
Ka-Hing Cheung
d650fe34ba
added tests and enhanced comments
6 years ago
Aaron Jacobs
df7caed6a7
dynamic_fs_test: run goimports and reflow text.
6 years ago
Aaron Jacobs
4fc546bdf9
dynamic_fs.go: reflow text.
6 years ago
Ben Sidhom
6a1014cd27
Enable StatFS on dynamicfs
...
MacOS apparently invokes StatFS on os.Lstat/os.Stat. Note that the
return fields are not actually populated here.
6 years ago
Ben Sidhom
8edb6e4462
Add integration test for direct-io filesystem
6 years ago
Aaron Jacobs
2642d571aa
memfs_test: pass on Go 1.8 and above, too.
...
This was broken by golang/go@321c312d8246dec6889f5fe334b6193c320baf0e.
6 years ago
Aaron Jacobs
a067b22c1d
Fix issues around statfs(2) changes with osxfuse 3.
...
Tested on OS X 10.11.6 (15G1004) with osxfuse 3.5.2.
7 years ago
Aaron Jacobs
b2c3396382
Update state around "close without msyc" behavior on OS X.
7 years ago
Aaron Jacobs
ab9f5b35ca
Fixed a silly test bug.
7 years ago
Aaron Jacobs
67e4fbbc5f
Added memFS.MkNode.
7 years ago
Aaron Jacobs
6afe951ee0
Fixed build errors.
7 years ago
Aaron Jacobs
4db81d4495
Pasted MknodTest from googlecloudplatform/gcsfuse@ff8a3f0.
7 years ago
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.
8 years ago
Aaron Jacobs
246d37a0ba
Updated Linux tests for the new behavior.
8 years ago
Aaron Jacobs
6565b52bcb
Fixed the documentation to match reality on darwin.
8 years ago
Aaron Jacobs
7c543380ea
Add tests for the newly-documented behavior on Darwin.
8 years ago
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 .
8 years ago
Aaron Jacobs
57b4e8798f
Fixed other tests on OS X.
8 years ago
Aaron Jacobs
be680e1860
Fixed StatFSTest.CapacityAndFreeSpace on Linux.
8 years ago
Aaron Jacobs
ca114f296a
Fixed most tests on Linux.
8 years ago