Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am working on virtual file system in the kernel, my requirement is I want add some more header information to the file when the data is written to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    4

    Post virtual filesystem


    Hi,


    I am working on virtual file system in the kernel, my requirement is I want add some more header information to the file when the data is written to the filesystem during this time the control comes to vfs_write() function, in this function I have to add the header information to the file and storing into the filesystem and similarly when the user trying to open the file for reading the system will comes to vfs_read() function , here I have to remove the header and give normal information to user.

    Can somebody tell me how I can add the header information.

    Thanking you

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Are you trying to provide checksum for data? I heard brtfs file system provides data check-sum. Dropping a mail to file system developers is better option.

    HTH
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Feb 2010
    Posts
    4

    Vfs fileheader

    Hi ,

    I want to add some more extra information like I want to encrypt the file and keep the encrypted information in the file header itself.
    Thanking u
    BHANU

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •