1. 02 Nov, 2016 2 commits
    • Jonathon Reinhart's avatar
      nodefs: Change defaultNode.GetAttr() to call file.GetAttr() if not nil · 994fc0fe
      Jonathon Reinhart authored
      This enhances nodes which embed defaultNode (which is most of them),
      allowing those implementations to omit a GetAttr() method. Without this,
      when the kernel calls GetAttr() for an open file, FUSE will return a
      size of zero, causing a read() of the file to always return 0, even
      though fuse returns a nonzero number of bytes.
      
      One can leverage this behavior to create a Linux procfs-like file, which
      stat shows to be zero bytes, but can be successfully read.
      
      N.B. This behavior is only useful if the FileSystemConnector Options
      specify AttrTimeout of zero. Otherwise, the result of the first call to
      GetAttr() (file == nil) is cached, and the kernel allows zero bytes to
      be read. With this caching disabled, the next GetAttr() call (file !=
      nil) will be used to control the number of readable bytes.
      994fc0fe
    • Han-Wen Nienhuys's avatar
      a2e4f919
  2. 24 Oct, 2016 1 commit
  3. 18 Oct, 2016 2 commits
  4. 15 Sep, 2016 3 commits
  5. 25 Aug, 2016 1 commit
  6. 11 Aug, 2016 4 commits
  7. 10 Aug, 2016 1 commit
  8. 09 Aug, 2016 4 commits
  9. 04 Aug, 2016 3 commits
  10. 03 Aug, 2016 3 commits
  11. 31 Jul, 2016 1 commit
  12. 25 Jul, 2016 5 commits
  13. 22 Jul, 2016 1 commit
    • Han-Wen Nienhuys's avatar
      Rewrite mount_darwin.go, obviating CGO. · ebe08a81
      Han-Wen Nienhuys authored
      The strategy was inspired by the mount code for Darwin in
      bazil.org/fuse.
      
      Unfortunately, OSX must have the event loop started before mounting
      can be completed. This means that WaitMount() must be maintained for
      use on OSX.
      
      Change-Id: Ie53425f306b4575b3e94e45407bab05017f5ce14
      ebe08a81
  14. 18 Jul, 2016 4 commits
  15. 13 Jul, 2016 2 commits
  16. 12 Jul, 2016 2 commits
  17. 11 Jul, 2016 1 commit
    • Han-Wen Nienhuys's avatar
      Add Debug fields to all Options structs, and use those. · a27cac55
      Han-Wen Nienhuys authored
      SetDebug methods are maintained for compatibility.
      
      This is part of a patch series to process the INIT opcode on
      mount. This will enable filesystems to switch functionality depending
      on kernel settings.
      
      In order to get the debug output for the INIT opcode, the debug option
      must be passed to the mount method.
      
      Deprecate the SetDebug methods. There is often little practical use in
      toggling debug on the fly, since the error scenarios depend on timing
      details, and must usually be isolated into unittests.
      
      Change-Id: I221c995add5f7621b627f738d7e97af7daf81b2a
      a27cac55