State of FUSE on FreeBSD

Stefan Esser se at freebsd.org
Fri Aug 11 15:02:39 UTC 2017


Am 11.08.17 um 16:31 schrieb Ben RUBSON:
> 
>> On 11 Aug 2017, at 16:22, Ben RUBSON <ben.rubson at gmail.com> wrote:
>>
>> I managed to build master branch :
>> https://github.com/libfuse/libfuse
> 
> I just had to remove "assert(... -oauto_unmount ...)" from :
> test/test_setattr.c
> test/test_write_cache.c

I have modified the existing port to build the new libfuse, see attached
file (to be unpacked in /usr/ports).

I tried "example/hello -d /mnt" and "example/hello_11 -d /mnt".

While "hello" fails, "hello_ll" seems to work, but I get the following
output from "df":

$ df /mnt
Filesystem 1K-blocks Used Avail Capacity  Mounted on
df: File system /mnt does not have a block size, assuming 512.
/dev/fuse          0    0     0   100%    /mnt

Unmounting /mnt works as expected.

Running the tests results in:

$ py.test-3.6 test
======================================= test session starts
=======================================
platform freebsd12 -- Python 3.6.2, pytest-3.2.0, py-1.4.34,
pluggy-0.4.0 -- /usr/local/bin/python3.6
cachedir: test/.cache
rootdir: libfuse-50d9158/test, inifile: pytest.ini
collected 24 items

test/test_ctests.py::test_write_cache[False] PASSED
test/test_ctests.py::test_write_cache[True] FAILED
===================================== short test summary info
=====================================
FAIL test/test_ctests.py::test_write_cache[True]

============================================ FAILURES
=============================================
_____________________________________ test_write_cache[True]
______________________________________
Traceback (most recent call last):
  File "libfuse-50d9158/test/test_ctests.py", line 31, in test_write_cache
    subprocess.check_call(cmdline)
  File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command
'['libfuse-50d9158/test/../test/test_write_cache',
'/tmp/pytest-of-root/pytest-8/test_write_cache_True_0',
'-owriteback_cache']' died with <Signals.SIGABRT: 6>.
-------------------------------------- Captured stderr call
---------------------------------------
Assertion failed: (conn->capable & FUSE_CAP_WRITEBACK_CACHE), function
tfs_init, file test_write_cache.c, line 56.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================== 1 failed, 1 passed in 61.28 seconds
===============================

Regards, STefan


More information about the freebsd-fs mailing list