Re: Question about VFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2014-04-30 9:14 GMT+05:30 Adam Fowler <ajf2177@xxxxxxxxxxxx>:
> 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
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux