robojeb / AgFS

AgFS is a union mount style filesystem designed to allow easy access for users to remote file locations while still allowing server maintainers to keep control over who has access to what part of the file tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibly write the truncate function so that vim will work

MarkCMann opened this issue · comments

Currently, vim pulls all file data into a buffer and then truncates the file to 0 and rewrites all data within the file. Thus, to benefit our presentation on Tuesday I think we should write truncate.

This will be harder than I thought because the truncate function does not take the fuse_file_info struct. Thus we cannot differentiate files of the same name but on more than one server unless the user differentiates them for us.

We might want to throw an error if the user decides to be this malicious.