Re: how to write modified inode back to disk?

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

 



On Sun, Feb 20, 2011 at 10:30 AM, kashish bhatia <koolest77@xxxxxxxxx> wrote:
> hi all ,
>
> here is my query :
>
> I made a module which access a disk inode using function named
> ext2_get_inode().
> It returns structure pointer of disk block. I copied this structure pointer
> in a variable
> of same datatype as of disk inode which is present in my module.
>
> Then I changed some fields of this disk inode ( eg. block numbers ) in the
> variable.
>
> Now I want to write these changes back to disk. In other words , I want to
> write my
> module's variable back into disk inode in disk.

Have a look at the calls of.

   mark_inode_dirty(inode);
   __ext2_write_inode(inode, inode_needs_sync(inode));



>
>
> Is there any method to do this?
>
>
> --
> Regards,
> Kashish
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>



-- 
Thanks -
Manish

_______________________________________________
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