I'm trying to understand what the .truncate method is supposed to do when the file size is extended. (Using 2.5.68-rmk1)
dd if=/dev/zero count=1 seek=3 of=tempfile In my filesystem, if I imediately read it back, I get the garbage from the disk for the first 3 blocks, but if I umount/mount the filesystem, the data is the 4 blocks of zeros expected. So it looks like there is a mapping of some sort that I'm missing, but I'm at a loss.
Any pointers to docs, examples, etc? Is there something I can read to understand what is going on with buffer heads in a filesystem context? Something I should grep or Google for?
Any help, pointers, etc. would be greatly appreciated.
Eli --------------------. "If it ain't broke now, Eli Carter \ it will be soon." -- crypto-gram eli.carter(a)inet.com `-------------------------------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/