- 18 May, 2023 1 commit
-
-
Han-Wen Nienhuys authored
Change-Id: I48236bf879939537944e617baa620884e7601055
-
- 26 Apr, 2023 1 commit
-
-
Han-Wen Nienhuys authored
Change-Id: Ide68c48ffc2b8343884639835b958bf404739dbc
-
- 23 Apr, 2023 2 commits
-
-
Han-Wen Nienhuys authored
Change-Id: Ib86b9b98ce62783992ed233fe809f3552dc7bd99
-
Han-Wen Nienhuys authored
A spurious blank line dropped the entire doc string. Set Size in the Lookup example Change-Id: Idefd113f7749e8aadfc4730e38b7444f36c0e419
-
- 21 Apr, 2023 2 commits
-
-
Jakob Unterwurzacher authored
Fixes this test failure: 2023/04/13 20:25:20 callFusermount: executing ["/usr/bin/fusermount3" "/tmp/TestDirectMount4166040800" "-o" "allow_other,subtype=/tmp/go-build1065896,max_read=131072"] /usr/bin/fusermount3: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf \--- FAIL: TestDirectMount (0.01s) mount_linux_test.go:117: fusermount exited with code 256 Change-Id: I4a2a2983dd422de9360b17068ac0d8a3947d453d
-
Han-Wen Nienhuys authored
Change-Id: Ifb84efcb76615cc492c867afb9e1840a6977d402
-
- 12 Apr, 2023 2 commits
-
-
Jakob Unterwurzacher authored
Commit 265a3926 missed adding max_read to the DirectMount path. Add it, which fixes the TestDirectMount failures. Change-Id: Ie934944d8f0a08fb65e2b6f675c8032f404d50df
-
Jakob Unterwurzacher authored
Also test several max_write values, and different fs names. And make the fail output easier to read. Change-Id: Idbc9003554dfd7320890488f0b16cd5cfce1d6b4
-
- 10 Apr, 2023 5 commits
-
-
Han-Wen Nienhuys authored
Change-Id: I1d0537a1f50eb850c7741db1253189dfcf81711c
-
Han-Wen Nienhuys authored
Change-Id: Iee1d90c83a1ff41dadbea07259e71fde7b0cfb22
-
Han-Wen Nienhuys authored
Change-Id: Ieba742bdbe830fdc18f82986694e2cd4d7caf161
-
Han-Wen Nienhuys authored
According to the lseek(2) manpage, seek(SEEK_HOLE) should behave as if there is an implicit hole at the end of every file. Add a test. Fixes #417. Change-Id: I169a803ea81e3c920b61edf8bb8b774870d042c5
-
ZheNing Hu authored
Add a test. Change-Id: I8620e59ce2fc7b19f595c5670839735243fcd1bf
-
- 09 Apr, 2023 1 commit
-
-
Han-Wen Nienhuys authored
Previously, if a DirStream.Next() call would return error, we would return the buffered data as well as the errno code in the same request. This would confuse the kernel, who interprets this as an invalid response, returning syscall.EIO to the caller. To fix this, also buffer the errno as overflow entry in the fileEntry struct. When we encounter an error, return thus far read entries with success. The following read contains just the error. For testing this properly, loopbackDirStream (which reads directory contents) must also buffer error returns. Change-Id: Ideb8ea6f540de9189a0f366efca0db2205e5dec3
-
- 07 Apr, 2023 7 commits
-
-
Han-Wen Nienhuys authored
Adds fuse.Options.EnableSymlinkCaching to enable cached symlinks. Updates in GETATTR results do not trigger new READLINK calls, so this breaks backward compatibility for file systems that have auto-updating symlinks (e.g. a symlink pointing to the HEAD revision of a remote git repository) Change-Id: Ifcbcd75e
-
Han-Wen Nienhuys authored
The logging makes it seems something is wrong when running the test. Change-Id: I4e8ec5c72da555922ca7d20f0a34b9939b36fa9a
-
Han-Wen Nienhuys authored
This avoids a deadlock on Darwin, because futimens calls loopbackFile.Getattr again. Fixes #419 Change-Id: Ia45a0ec3c0ea06c0419913e34b3415808f9349da
-
Han-Wen Nienhuys authored
Change-Id: I9357f137487d1c958a95ed46db081b7775604b6b
-
Han-Wen Nienhuys authored
Change-Id: Ifec1f504e014c3af9fe79943660831be0598a6d2
-
Han-Wen Nienhuys authored
Change-Id: Ia0d7293d14bb4fdac9be913ba6bd92b836636070
-
Han-Wen Nienhuys authored
Change-Id: I115ebce34aaf22767bb8b90b842927c133e30b65
-
- 05 Apr, 2023 1 commit
-
-
Han-Wen Nienhuys authored
This avoids that the result from concurrent directory reads (which would return entries in different order) pollute kernel caches. Add a test. Fixes #391 Change-Id: I06a252bd
-
- 29 Mar, 2023 1 commit
-
-
Han-Wen Nienhuys authored
Change-Id: I144cb541
-
- 23 Mar, 2023 1 commit
-
-
Han-Wen Nienhuys authored
Change-Id: I1612f912dd6b113e7776b13c40f9a41038a3fd53
-
- 19 Mar, 2023 2 commits
-
-
Alex Fishman authored
Signed-off-by: Alex Fishman <alex@fuse-t.org> Change-Id: I82de5e2dd0340da4e05e4ccf1bbd162dff33b656
-
Alex Fishman authored
Darwin amd64 uses uint16 for Stat_t.mode Signed-off-by: Alex Fishman <alex@fuse-t.org> Change-Id: I82de5e2dd0340da4e05e4ccf1bbd162dff33b611
-
- 21 Feb, 2023 1 commit
-
-
Lucas Manning authored
Change-Id: I3a67066a6660481bdab81278a91027755973b496
-
- 05 Feb, 2023 1 commit
-
-
ZheNing Hu authored
- provides an optional way to set e.g. Ino and/or Gen for the root directory when calling fs.Mount() - provides unit test cases - partial fix for #399 Change-Id: If45a0ec3c0ea06c0419913e34b3415808f9349da
-
- 30 Jan, 2023 7 commits
-
-
Jakob Unterwurzacher authored
Allows to enable the DirectMount{,Strict} flag through the cli, facilitating testing. Change-Id: I46e273ea68e6a81b4e7873802bc3b1c7760f56f0
-
Jakob Unterwurzacher authored
Commit 17c7e2cd loopback: show original directory in "df" added the FsName field to MountOptions, but looks like d31db957 fuse: allow setting the fsname (first column in df -T) forgot that it exists. Use it now. This will be important for DirectMount, as passing "fsname=xxx" to the mount syscall causes the kernel to reject with EINVAL and this message in dmesg: [132274.900267] fuse: Unknown parameter 'fsname' Change-Id: Ic1233fe9306e2ce05f85189eecceecec2baa44b7
-
Jakob Unterwurzacher authored
These were open-coded before. Pull them into the struct initializer for somewhat clearer code. I'm doing this now as I'm about to add another option. Change-Id: Ie04cfc9fb1f4128b8faf5c85757d7263aa77e5a0
-
Jakob Unterwurzacher authored
Do what fusermount does instead of hard-coding the strings. Change-Id: Idf18f1c5cd17b7f9db8e15e8bc5173d0f6ca41db
-
Jakob Unterwurzacher authored
Two variable were defined but never used in what looks like a copy-paste error or something. Fix that, which also makes the tests pass. Change-Id: Iebf48583874977c518d888d9a80bc1f02e2a7f86
-
Jakob Unterwurzacher authored
Reason for adding DirectMountStrict is making the DirectMount functionality testable, though it may have value for the user in some cases. Add defaultRawFileSystem & loopback tests for DirectMount and DirectMountStrict. The tests fail right now due to bugs in DirectMount that will be fixed shortly: go-fuse/fuse$ sudo /usr/local/go/bin/go test -run TestDirectMount [...] 2022/12/28 20:19:21 mountDirect: calling syscall.Mount("", "/tmp/TestDirectMount3242971772", "fuse./tmp/go-build1215740", 0x0, "fd=7,rootmode=40000,user_id=0,group_id=0") 2022/12/28 20:19:21 mount: failed to do direct mount: invalid argument [...] Change-Id: Ibfa2fa141cb43e1f8c7319233c454a3e85fa435e
-
Han-Wen Nienhuys authored
Change-Id: I1aff29b88edff004f2b1cf7c36831c1767608b0d
-
- 27 Jan, 2023 1 commit
-
-
Jakob Unterwurzacher authored
Kernel 4.20 allows writes & reads up to 1 MiB (before: 128 kiB) via CAP_MAX_PAGES & MaxPages. Instead of exposing MaxPages in the API, we follow what libfuse does, and calculate MaxPages from MaxWrite (rounding up). Contrary to what libfuse does, we also set max_read to the same value as MaxWrite. This prevents reads getting larger than writes due to the rounding-up for MaxPages, which is unexpected. This also changes the default behavoir of go-fuse, which was 64 kiB writes, but 128 kiB for reads. Now it is 128 kiB for both. The tests are implemented in the fs package because it's easier there. They also test MaxReadAhead. Tested on Linux 4.19.0 and Linux 6.1.7 via all.bash, and on 6.1.7 also via the gocryptfs test suite. Supersedes https://github.com/hanwen/go-fuse/pull/347 Change-Id: I5a1d4ee91945155c367888da7a90814a24a9ee6e
-
- 17 Nov, 2022 1 commit
-
-
Tamas Kerecsen authored
When ReadDirPlus is enabled, the FUSE fs has to gather a lot of additional data for every file even if it won't be used (for example when the user is doing and 'ls' or a large glob). This can cause performance problems, so it should be possible to switch to the simple ReadDir behavior for file systems where this is a bottleneck. Change-Id: I7f2e58fe6e728a408044ce789633423f6e527554
-
- 15 Nov, 2022 3 commits
-
-
Han-Wen Nienhuys authored
Change-Id: If4af8e09d1921242e36a415317d390154c5c2891
-
Andrew Chambers authored
Change-Id: Icb2931139a6293abaaa95623a8e130dd6f8dab0b
-
sunjiapeng authored
There is a sync.Pool leak in server.go, which triggers in case of multi-threaded loads. Benchmarks: env: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (8core 16procs) go test -bench="BenchmarkGoFuseRead" -benchmem old: 2 10992 92501 ns/op 22671.71 MB/s 536981 B/op 196 allocs/op 4 19068 57959 ns/op 36183.44 MB/s 151877 B/op 170 allocs/op 8 27729 43796 ns/op 47884.39 MB/s 29068 B/op 162 allocs/op 16 28674 41403 ns/op 50651.65 MB/s 6704 B/op 160 allocs/op fixed: 2 23667 46589 ns/op 45014.20 MB/s 5357 B/op 167 allocs/op 4 27753 42327 ns/op 49546.77 MB/s 4999 B/op 161 allocs/op 8 29648 40806 ns/op 51392.81 MB/s 4904 B/op 160 allocs/op 16 29389 40763 ns/op 51447.07 MB/s 4848 B/op 160 allocs/op Change-Id: I062928203df5603ebca04c08c4d428d385f99c2c
-