On Apr 5, 2005 4:01 PM, nitin ahuja <nitin2ahuja@xxxxxxxxxxxxx> wrote: > 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? This may sound silly, but I am trying to find a way to commit these changes. Any idea how? I believe this is why the data is still located in the hard disk device somehow, afterall, I am modifying b_data that belongs to buffer_head. Kathy -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/