Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apady opened this issue Dec 12, 2018 · 4 comments
Open

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

apady opened this issue Dec 12, 2018 · 4 comments

Comments

@apady
Copy link
Contributor

apady commented Dec 12, 2018

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

@yvxiang
Copy link
Collaborator

yvxiang commented Dec 12, 2018

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

@apady
Copy link
Contributor Author

apady commented Dec 12, 2018

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

@yvxiang
Copy link
Collaborator

yvxiang commented Dec 17, 2018

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

@imotai
Copy link
Contributor

imotai commented May 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants