Debian Bug report logs - #927480
Performance: if an fs reports EOPNOTSUPP for xattr/acl calls, don't keep trying

version graph

Package: rsync; Maintainer for rsync is Samuel Henrique <[email protected]>; Source for rsync is src:rsync (PTS, buildd, popcon).

Reported by: Andras Korn <[email protected]>

Date: Sat, 20 Apr 2019 16:33:02 UTC

Severity: wishlist

Tags: upstream

Found in version rsync/3.1.3-6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Paul Slootman <[email protected]>:
Bug#927480; Package rsync. (Sat, 20 Apr 2019 16:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Andras Korn <[email protected]>:
New Bug report received and forwarded. Copy sent to Paul Slootman <[email protected]>. (Sat, 20 Apr 2019 16:33:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Andras Korn <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Performance: if an fs reports EOPNOTSUPP for xattr/acl calls, don't keep trying
Date: Sat, 20 Apr 2019 18:25:02 +0200
Package: rsync
Version: 3.1.3-6
Severity: wishlist
Tags: upstream

Hi,

according to strace -c, getxattr() and similar calls can take up a lot of
runtime (around ten percent) if there are many files to be synced and other
stuff (I/O, network) is reasonably fast.

It would make sense for rsync to skip such calls for files on a filesystem
that replied with EOPNOTSUPP and save some time.

The stat() family of calls tell rsync which fs the file is on, so that you
just need to wrap the ACL/xattr calls in a wrapper that checks whether the
fs in question is known to not support ACLs/xattrs before calling the actual
syscall/library function.

Counterarguments:

1. "don't call rsync with -AX if your fs doesn't support ACLs/xattrs".
Apparently valid, but maybe I'm syncing a huge tree with more than one
mountpoint, and some of the mounted filesystems support ACLs/xattrs while
others don't.

2. it's possible for an fs to be remounted with ACL/xattr support while
rsync is running; if my suggestion were implemented, rsync could miss some
ACLs/xattrs. My response to that is "don't do that then". :)

András

-- 
             I spilled spot remover on my dog, and now he's gone!



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:43:14 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.