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

Re: Re: Access content of file via inodes



Hi People,

>
> Looks like I managed to get the blocks that belong to > this particular inode.
> But when I try to zero b_data, the data still appears > in the hard disk device
> (verified using hexdump).

> Any idea why? It's been troubling me for days.
>

When you change anything in the memory region pointed by b_data field of struct buffer_head, it just makes changes in memory (in buffer cache, to be precise).
Did you commit these changes to disk by writing modified data of this block?

Nitin


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