linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: linux-btrfs@vger.kernel.org
Subject: Re: Symlink to a long filename "filename too long" error
Date: Mon, 10 Sep 2012 10:45:10 -0700	[thread overview]
Message-ID: <20120910174510.GM5053@merlins.org> (raw)
In-Reply-To: <20120910171630.GT17430@twin.jikos.cz>

On Mon, Sep 10, 2012 at 07:16:30PM +0200, David Sterba wrote:
> On Mon, Sep 10, 2012 at 09:34:06AM -0700, Marc MERLIN wrote:
> > Due to some filesystem corruption on my source device, I had a very long file as a symlink
> > target that btrfs wasn't able to recreate.
> > Mind you, in this case it's clearly not something I need, but is it
> > expected/known that ext4 can store longer filenames than btrfs?
> 
> Btrfs can store symlink targets up to it's inline limit, 3917. xfs has
> this limit hardcoded as 1024. ext4 has fast and non-fast symlink
> storage, based on the target length, so it's able to store the maximum
> PATH_MAX size into a full block for the non-fast case.

Thanks for explaining. For normal use, 3917 seems more than adequate :)
 
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

      reply	other threads:[~2012-09-10 17:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-10 16:34 Symlink to a long filename "filename too long" error Marc MERLIN
2012-09-10 17:16 ` David Sterba
2012-09-10 17:45   ` Marc MERLIN [this message]

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=20120910174510.GM5053@merlins.org \
    --to=marc@merlins.org \
    --cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).