From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id 31E877F62 for ; Fri, 31 Jan 2014 02:55:00 -0600 (CST) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay1.corp.sgi.com (Postfix) with ESMTP id 041958F8050 for ; Fri, 31 Jan 2014 00:54:59 -0800 (PST) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by cuda.sgi.com with ESMTP id 2GJbx7rPD2PX934Y (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 31 Jan 2014 00:54:59 -0800 (PST) Message-ID: <52EB64DC.4020603@oracle.com> Date: Fri, 31 Jan 2014 16:54:52 +0800 From: Jeff Liu MIME-Version: 1.0 Subject: Re: Extended attributes limit in Linux References: In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Sun_Blood , xfs@oss.sgi.com Hello, On 01/31 2014 15:40 PM, Sun_Blood wrote: > Hello, > > If I understands it correctly XFS don't have a limit to the size of > extended attributes(EA) but Linux impose a limit at 64k. > What I am trying to do is build a backup server that our Apple computers > will use together with rsync to backup files to. The problem I face is > that Apple HFS+ don't have a limit to EA so it has files with more then > 64k of EA in it. > > The Linux Kernel has a limit imposed to it in include/linux/limits.h > > #defineXATTR_SIZE_MAX 65536 /* size of an extended attribute value > (64k) */ > > #defineXATTR_LIST_MAX 65536 /* size of extended attribute namelist > (64k) */ > Yes, 64k is the VFS limit per EA value size. > Changing this values feels unsafe because they will be system wide. > > Is the any possibility to combine Linux + XFS to make a backup that > works with EA or is this more a question for kernel.org ? So if an EA value size on HFS+ is larger than 64k, I suspect it would failed to preserve on Linux+XFS... But if a file has multiple EAs, and each EA's value size is <= 64K, it would be works IMO. Thanks, -Jeff _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs