Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Chad Lucas
Making FuseFS more than readonly [ reply ]  
2011-08-11 15:27
I'm posting this for anyone who is having trouble making their file system do more than simply read content.

The API.txt almost seemed to imply to me that you don't have to implement very many methods in order to make the file system writable. I was trying to implement just the amount I thought was needed in order for what I had in mind, but that still left me with a read-only setup.

I recommend anyone who is trying to make their file system not read-only to implement the following to your class: directory?, can_mkdir?, can_rmdir?, contents, file?, can_write?, can_delete?, delete, raw_close, raw_open, raw_read, raw_write.

The API.txt is very helpful in telling you what these methods are for and what it expects in return.