[英]FUSE: Transport endpoint is not connected
Note : I read FUSE error: Transport endpoint is not connected but it doesn't help. 注意 :我读到FUSE错误:传输端点未连接,但无济于事。
I'm working with the FUSE API: https://github.com/libfuse/libfuse 我正在使用FUSE API: https : //github.com/libfuse/libfuse
I created a small project to test the library. 我创建了一个小项目来测试库。 The main
looks like: 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 );
(...)
my program is launched with: 我的程序通过以下方式启动:
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
I also tried to 我也尝试过
sudo umount -l ./tmp_fuse
with/without fusermount but I got the same problem. 有/没有fusermount,但我遇到了同样的问题。
After my application is launched, the last line of /etc/mtab
is 启动我的应用程序后, /etc/mtab
的最后一行是
test.xml /path/to/tmp_fuse fuse.test.xml rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
Thank you for your help. 谢谢您的帮助。
P. P.
got it a simple memset was missing :-) 得到了一个简单的内存集丢失了:-)
struct fuse_operations operations;
memset((void*)&operations,0,sizeof(struct fuse_operations));
operations.open = htsfuse_open;
operations.read = htsfuse_read;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.