bfs icon indicating copy to clipboard operation
bfs copied to clipboard

如何实现对BFS上非空文件的写操作?

Open apady opened this issue 7 years ago • 4 comments

怎么才能实现以附加写(append write)的方式打开BFS file? eg. 第一次写入的内容为 "hello world! ",第二次写入的内容为 "hello apady". 文件最终的内容为"hello world! hello apady"

apady avatar Dec 12 '18 04:12 apady

目前不支持,以前有分支支持,但是一般没有使用这个功能的场景。文件一旦close后就不允许再写

yvxiang avatar Dec 12 '18 05:12 yvxiang

只要文件存在,以写的方式打开文件或者执行bfs_symlink()都会报错。bfs_touchz()接口的意义何在?创建一个空文件,但不能执行任何操作?

apady avatar Dec 12 '18 12:12 apady

是的,不允许以写打开一个已经存在的文件

yvxiang avatar Dec 17 '18 08:12 yvxiang

其实使用多文件管理数据会是一个比较好的实践,特别是大数据

imotai avatar May 18 '19 06:05 imotai