代码之家  ›  专栏  ›  技术社区  ›  Pierre

保险丝:传输终结点未连接

  •  0
  • Pierre  · 技术社区  · 7 年前

    :我读了 FUSE error: Transport endpoint is not connected 但没用。

    我正在使用FUSE API: https://github.com/libfuse/libfuse

    我创建了一个小项目来测试这个库。这个 main 看起来像:

    (...)
        struct fuse_operations operations;
        operations.open = htsfuse_open;
        operations.read = htsfuse_read;
        operations.release = htsfuse_release;
        operations.readdir = htsfuse_readdir;
        operations.getattr = htsfuse_getattr;
    
        int ret= fuse_main( argc-1, &argv[1], &operations,NULL );
    (...)
    

    我的计划启动于:

    sudo fusermount -u tmp_fuse && rm -rf tmp_fuse
    mkdir -p tmp_fuse
    ./htsfuse config.xml ${PWD}/tmp_fuse
    ls tmp_fuse
    ls: cannot access 'tmp_fuse': Transport endpoint is not connected
    

    我也试着

     sudo umount -l ./tmp_fuse
    

    在我的申请启动后 /etc/mtab

    test.xml /path/to/tmp_fuse fuse.test.xml rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
    

    谢谢你的帮助。

    第。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Pierre    7 年前

    struct fuse_operations operations;
    memset((void*)&operations,0,sizeof(struct fuse_operations));
    operations.open = htsfuse_open;
    operations.read = htsfuse_read;