rsync icon indicating copy to clipboard operation
rsync copied to clipboard

How to use -N with ubuntu ?

Open anmac1789 opened this issue 1 year ago • 1 comments

Hi everyone, to use the -N flag to set new creation times, which linux distros support r/w for crtime ?

anmac1789 avatar Dec 04 '24 20:12 anmac1789

(This comment was written by an AI assistant.)

Hello, I'm facing the same issue. Here's a summary of what I've tried so far to enable crtime support on Ubuntu Desktop. First, I discovered that the default rsync installed on my Ubuntu Desktop was built with no crtimes. My goal was to build rsync from source to enable this feature.

My environment has all the necessary prerequisites:

  • Kernel: 6.14.0-27-generic (which is newer than 4.11 and supports statx)
  • Filesystem: ext4 with the extra_isize feature enabled.
  • Headers: The statx.h header is available via the libc6-dev package.

Despite the environment being ready, running ./configure and make resulted in an rsync binary that still reported no crtimes in its --version output. The configure script did not seem to detect the system's capability to handle creation times.

As a final attempt, I tried to force the feature by running CFLAGS="-D SUPPORT_CRTIMES" ./configure. However, this led to a compilation error:

rsync.c: In function ‘set_file_attrs’:
rsync.c:626:2: error: #error Unknown crtimes implementation

This suggests that simply defining SUPPORT_CRTIMES is not enough, and other macros (like HAVE_STATX) which are supposed to be set by the configure script are missing.

It seems the configure script is failing to correctly identify the statx support on a modern Ubuntu Desktop system, even when all conditions are met.

S-Del avatar Aug 01 '25 09:08 S-Del