I'm trying to implement a write method and I partially succeeded by making a #write and an #open method: Now I can echo foo >> mnt/bar to that FS. :)
I still can't do cp foo.txt mnt/bar.txt (giving me cp: cannot create regular file 'mnt/bar.txt': Function not implemented) or echo foo > mnt/bar (giving me function not implemented: mnt/bar).
I guess I have to implement #truncate for the latter … but how?
I'm trying to implement a write method and I partially succeeded by making a
#writeand an#openmethod: Now I canecho foo >> mnt/barto that FS. :)I still can't do
cp foo.txt mnt/bar.txt(giving mecp: cannot create regular file 'mnt/bar.txt': Function not implemented) orecho foo > mnt/bar(giving mefunction not implemented: mnt/bar).I guess I have to implement
#truncatefor the latter … but how?