mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bob Copeland" <me@bobcopeland.com>
To: "Maria Short" <mgolod@ieee.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux slack space question
Date: Fri, 8 Dec 2006 12:46:05 -0500	[thread overview]
Message-ID: <b6c5339f0612080946k57f9271fmdb8ed13ffefdf92b@mail.gmail.com> (raw)
In-Reply-To: <3c698a820612080921u20a957d9x1ac1e01e6734d025@mail.gmail.com>

On 12/8/06, Maria Short <mgolod@ieee.org> wrote:
> What I need is the code in the kernel that does that. I have been
> looking at http://lxr.linux.no/source/fs/ext3/inode.c but I could not
> find the specific code for partially filling the last block and
> placing an EOF at the end, leaving the rest to slack space.

There is no place where it writes an EOF.  The size of the file is
stored in metadata (e.g. inode->i_size), and only the appropriate
number of blocks up to i_size are read or written to.  Look at
ext3_get_block to see how blocks are read and allocated.

Bob

  reply	other threads:[~2006-12-08 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-08 17:21 Maria Short
2006-12-08 17:46 ` Bob Copeland [this message]
2006-12-08 18:51 ` linux-os (Dick Johnson)
2006-12-11 17:30 ` Erik Mouw

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=b6c5339f0612080946k57f9271fmdb8ed13ffefdf92b@mail.gmail.com \
    --to=me@bobcopeland.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgolod@ieee.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

all inboxes | Powered by JetHome®