1. 08 Jun, 2023 2 commits
  2. 07 Jun, 2023 1 commit
  3. 25 May, 2023 1 commit
  4. 18 May, 2023 2 commits
  5. 26 Apr, 2023 1 commit
  6. 23 Apr, 2023 2 commits
  7. 21 Apr, 2023 2 commits
    • Jakob Unterwurzacher's avatar
      .github: set user_allow_other in /etc/fuse.conf · 652da3f9
      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
      652da3f9
    • Han-Wen Nienhuys's avatar
      .github: drop Go 1.13 / 1.15, add Go 1.18/1.19 · 1e62711b
      Han-Wen Nienhuys authored
      Change-Id: Ifb84efcb76615cc492c867afb9e1840a6977d402
      1e62711b
  8. 12 Apr, 2023 2 commits
  9. 10 Apr, 2023 5 commits
  10. 09 Apr, 2023 1 commit
    • Han-Wen Nienhuys's avatar
      fs: buffer error in directory reads · 17756c7c
      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
      17756c7c
  11. 07 Apr, 2023 7 commits
  12. 05 Apr, 2023 1 commit
  13. 29 Mar, 2023 1 commit
  14. 23 Mar, 2023 1 commit
  15. 19 Mar, 2023 2 commits
  16. 21 Feb, 2023 1 commit
  17. 05 Feb, 2023 1 commit
    • ZheNing Hu's avatar
      mount: add Options{RootStableAttr} field · 615a0a7e
      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
      615a0a7e
  18. 30 Jan, 2023 7 commits
    • Jakob Unterwurzacher's avatar
      example: loopback: add -directmount, -directmountstrict flags · de5d9718
      Jakob Unterwurzacher authored
      Allows to enable the DirectMount{,Strict} flag through the cli,
      facilitating testing.
      
      Change-Id: I46e273ea68e6a81b4e7873802bc3b1c7760f56f0
      de5d9718
    • Jakob Unterwurzacher's avatar
      example: loopback: use FsName field · 56d54486
      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
      56d54486
    • Jakob Unterwurzacher's avatar
      example: loopback: pull MountOptions into opts initializer · 59d90a47
      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
      59d90a47
    • Jakob Unterwurzacher's avatar
      fuse: DirectMount: replace hard-coded mount options · 3de2e5e1
      Jakob Unterwurzacher authored
      Do what fusermount does instead of hard-coding the strings.
      
      Change-Id: Idf18f1c5cd17b7f9db8e15e8bc5173d0f6ca41db
      3de2e5e1
    • Jakob Unterwurzacher's avatar
      fuse: fix DirectMount mixups · 039d39cf
      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
      039d39cf
    • Jakob Unterwurzacher's avatar
      fuse, fs: add DirectMount tests & DirectMountStrict option · 05c0aea6
      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
      05c0aea6
    • Han-Wen Nienhuys's avatar
      Run gofmt -s -w globally · 0f41d79d
      Han-Wen Nienhuys authored
      Change-Id: I1aff29b88edff004f2b1cf7c36831c1767608b0d
      0f41d79d