<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 2, 2014 at 10:37 PM, Dave Chinner <span dir="ltr"><<a href="mailto:david@fromorbit.com" target="_blank">david@fromorbit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 31, 2014 at 04:54:52PM +0800, Jeff Liu wrote:<br>
> Hello,<br>
><br>
> On 01/31 2014 15:40 PM, Sun_Blood wrote:<br>
> > Hello,<br>
> ><br>
> > If I understands it correctly XFS don't have a limit to the size of<br>
> > extended attributes(EA) but Linux impose a limit at 64k.<br>
> > What I am trying to do is build a backup server that our Apple computers<br>
> > will use together with rsync to backup files to. The problem I face is<br>
> > that Apple HFS+ don't have a limit to EA so it has files with more then<br>
> > 64k of EA in it.<br>
> ><br>
</div><div class="im">> > The Linux Kernel has a limit imposed to it in include/linux/limits.h<br>
> ><br>
> > #defineXATTR_SIZE_MAX 65536 /* size of an extended attribute value<br>
> > (64k) */<br>
> ><br>
> > #defineXATTR_LIST_MAX 65536 /* size of extended attribute namelist<br>
> > (64k) */<br>
> ><br>
><br>
> Yes, 64k is the VFS limit per EA value size.<br>
<br>
</div>XFS has a limit of 64k as well. I suspect that we could handle<br>
larger EAs without too much problem as we already have the concept<br>
of a "remote EA" that is allocated outside of the attribute btree<br>
(but still inside the attribute address space). The problem with<br>
them is that they are written synchronously, and so large attributes<br>
written this way are slow operations.<br>
<br>
Still, until the VFS limit is lifted and we do a bunch more work to<br>
avoid XATTR_SIZE_MAX allocations everywhere there's no point looking<br>
at raising the XFS limit....<br>
<br>
Cheers,<br>
<br>
Dave.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Dave Chinner<br>
<a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Ok. Just for fun how could we proceed to get the VFS limit lifted? Or any other way to handle this problem?<br></div><div class="gmail_extra">It would be nice to be able to say that XFS is the only file system available fully compatible with OS X HFS+ =)<br>
<br></div><div class="gmail_extra">/Martin <br></div></div>