Re: Re: Re: Access content of file via inodes

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

 



Hi Kathy,

>
> The marking buffers dirty and call bdflush work. I 
> have not tried with larger files. I suspect that I 
> might just encounter problems like you mentioned 
> (i.e. what if part of the file is not cached in 
> memory). Thanks for the inspiration tips.
>

I far as I remember, you wanted to modify data in some data block(s). For this you have to read in that data block, modify the existing data, and then finally sync newly written data to disk. During this process, as soon as you issue a read call to read a data block or the particular part of a file which you want to modify, the data block (or data) is entered in the cache first (cache of buffer heads). So, the part of a file, which you want to modify, will always be cached before you have actually modified it.

Nitin


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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