From: Eli Carter <eli.carter@inet.com>
To: linux-fsdevel@vger.kernel.org
Subject: .truncate extending a file
Date: Thu, 10 Jul 2003 17:22:40 -0500 [thread overview]
Message-ID: <3F0DE730.8060001@inet.com> (raw)
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 `-------------------------------------------------
reply other threads:[~2003-07-10 22:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0DE730.8060001@inet.com \
--to=eli.carter@inet.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox