* .truncate extending a file
@ 2003-07-10 22:22 Eli Carter
0 siblings, 0 replies; only message in thread
From: Eli Carter @ 2003-07-10 22:22 UTC (permalink / raw)
To: linux-fsdevel
All,
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?
TIA,
Eli
--------------------. "If it ain't broke now,
Eli Carter \ it will be soon." -- crypto-gram
eli.carter(a)inet.com `-------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-10 22:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-10 22:22 .truncate extending a file Eli Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox