X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS,URIBL_BLACK X-Spam-Check-By: sourceware.org Message-ID: <4AB0D66D.4000204@gmail.com> Date: Wed, 16 Sep 2009 13:13:33 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Bug or feature missing in rsync. References: <4AA61819 DOT 4030501 AT tlinx DOT org> <4AB0A9CD DOT 3090201 AT lapo DOT it> <4AB0AEBC DOT 6090709 AT lapo DOT it> In-Reply-To: <4AB0AEBC.6090709@lapo.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Lapo Luchini wrote: > The real reason is the following test: > > configure:8272: checking whether to support extended attributes > configure:8321: result: No extended attribute support found > > ...well, judging from configure lines 8272-8321 it seems rsync xattr > support is only available in linux, darwin and freebsd. > > So, yes, that isn't "activating a switch" but rater "write a feature", > which could be easy or difficult - I don't know enough about it right > now to be the judge of that; definitely needs some more RTFM regarding > xattrs on my side (and that needs time, which I have little on my hands, > right now). > As usual, the PTC principle applies there to have results faster. > http://www.cygwin.com/acronyms/#PTC It appears that cygwin has the xattr functions implemented and exported: > $ grep setxattr /gnu/winsup/src/winsup/cygwin/cygwin.din > fsetxattr SIGFE > lsetxattr SIGFE > setxattr SIGFE So it could be as simple as using the existing linux support on cygwin too, by doing something like: $ diff -pu configure.in.orig configure.in --- configure.in.orig 2009-09-16 13:10:53.125000000 +0100 +++ configure.in 2009-09-16 13:11:41.437500000 +0100 @@ -933,7 +933,7 @@ if test x"$enable_xattr_support" = x"no" AC_MSG_RESULT(no) else case "$host_os" in - *linux*) + *linux* | *cygwin*) AC_MSG_RESULT(Using Linux xattrs) AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have Linux xattrs]) AC_DEFINE(SUPPORT_XATTRS, 1) admin AT ubik /usr/src/rsync/rsync-3.0.5 ... followed of course by regenerating configure.sh. I haven't tested this (my cpu usage is already 100% and likely to stay that way for the next day or two!), but maybe you'd like to give it a whirl? cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple