Question about VFS
Sankar P
sankar.curiosity at gmail.com
Fri May 2 02:36:11 EDT 2014
2014-04-30 9:14 GMT+05:30 Adam Fowler <ajf2177 at columbia.edu>:
> 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
More information about the Kernelnewbies
mailing list