Re: Symlink to a long filename "filename too long" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/  
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux