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.
2020-04-23 21:11:18 +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
cd3c1bb470
flush_fs_test: match another error message
2019-09-18 16:27:50 +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
Michael Stapelberg
90d933551c
fix formatting directives (to pass go test)
2019-09-16 18:28:45 +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
df7caed6a7
dynamic_fs_test: run goimports and reflow text.
2017-05-09 07:47:28 +10:00
Aaron Jacobs
4fc546bdf9
dynamic_fs.go: reflow text.
2017-05-09 07:47:28 +10:00
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.
2017-05-09 07:47:28 +10:00
Ben Sidhom
8edb6e4462
Add integration test for direct-io filesystem
2017-05-09 07:47:28 +10: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
a067b22c1d
Fix issues around statfs(2) changes with osxfuse 3.
...
Tested on OS X 10.11.6 (15G1004) with osxfuse 3.5.2.
2016-10-16 09:12:42 +01:00
Aaron Jacobs
b2c3396382
Update state around "close without msyc" behavior on OS X.
2016-10-16 08:56:51 +01: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
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
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
7c543380ea
Add tests for the newly-documented behavior on Darwin.
2015-09-10 13:41:26 +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
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