2014-04-30 9:14 GMT+05:30 Adam Fowler <[email protected]>:
> I've been trying to implement a file system using vfs and I've got mkdir and
> touch working but I can't seem to get echo blah > new file to create a new
> file with content blah.

touch and mkdir are only for file creation. You need to extend and
implement the .write call from struct file_operations, for write
support. See: https://github.com/psankar/simplefs/blob/master/simple.c
 (search for simplefs_write)

Sankar

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to