read() 系统调用
在使用熔断器更改文件系统中的 read() 时,我碰巧注意到 read() 在另一个 read() 完成之前被调用。有没有办法对它们进行排序?如果它们重叠,我期望从第一个 read() 获得的数据实际上是由第二个 read() 创建的。 谢谢大家
阅读(path="/location.csv", buf=0x01c16960, size=32768, offset=16384, fi=0x33eb4e40)
start_read for 1
read(path="/location .csv",buf=0x01c1eb60,大小=65536,偏移量=49152, fi=0x346b5e40)
开始阅读 2
结束阅读 1
end_read for 2
While using fuse to change read() in my filesystem, I happened to notice that read() was called before the other read() finished. Is there anyway to sequentialize them? If they overlap, the data that I expect from first read() is actually created by the second.
Thanks guys
read(path="/location.csv", buf=0x01c16960, size=32768, offset=16384, fi=0x33eb4e40)
start_read for 1
read(path="/location.csv", buf=0x01c1eb60, size=65536, offset=49152, fi=0x346b5e40)
start_read for 2
end_read for 1
end_read for 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用
-s
(单线程)选项运行您的文件系统。如果它成功了,您可以通过使用fuse_opt_add_arg
将其添加到您的fuse_args
来强制启用它。Try running your filesystem with the
-s
(single-threaded) option. If it does the trick, you can force it on by using adding it to yourfuse_args
usingfuse_opt_add_arg
.