All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aneesh Kumar K. V" <aneesh.kumar@linux.vnet.ibm.com>
To: Roland Dreier <rdreier@cisco.com>, Paul Komkoff <i@stingr.net>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs fallocate woes
Date: Thu, 14 Jan 2010 23:56:36 +0530	[thread overview]
Message-ID: <87y6k0lezn.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <aday6k0lhpx.fsf@roland-alpha.cisco.com>

On Thu, 14 Jan 2010 09:27:38 -0800, Roland Dreier <rdreier@cisco.com> wrote:
> 
>  > if you run it on ext4, it will create a 4-byte file with "test" in it.
>  > On btrfs, however, the file size would be 4096, and the remaining
>  > space will be filled with zeroes.
> 
> My fallocate man page says:
> 
>        Because allocation is done in block size chunks, fallocate() may
>        allocate a larger range than that which was specified.
> 

But with zero as the mode value it should not have updated 
i_size. Looking at the latest linus tree it seems to be doing the right
thing

-aneesh

  parent reply	other threads:[~2010-01-14 18:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-14 11:28 btrfs fallocate woes Paul Komkoff
2010-01-14 17:27 ` Roland Dreier
2010-01-14 18:24   ` Paul Komkoff
2010-01-14 18:25     ` Paul Komkoff
2010-01-14 18:26   ` Aneesh Kumar K. V [this message]
2010-01-14 19:20   ` Chris Mason
2010-01-14 20:33     ` Paul Komkoff
2010-01-19 15:18       ` Paul Komkoff
2010-01-20  7:28         ` Aneesh Kumar K. V
2010-01-20 15:13           ` Paul Komkoff

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=87y6k0lezn.fsf@linux.vnet.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=i@stingr.net \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rdreier@cisco.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.