Timothe Litt wrote on Thu, Dec 01, 2022 at 04:14:42PM -0500:
> The attached "hardlink_strace.txt" comes from a simplified command to reduce
> volume, but it should show the same syscalls:
> 
>  ( cd / && strace 2>hardlink_strace.txt tar -cf - bin/awk bin/bash
> >/dev/null )

The fstatat64 structs returned from bin/awk and bin/bash are truncated,
could you provide the same strace with '-v' ?

It's obvious the files are different as st_size is different and
corresponds to the ls, but it'd be better to make sure.

> Finally, an unrelated (except that it hit this incident and prevented an easy
> restore) issue: *tar skips some large files with*
>
> |tar: root/sd/sd.tar.gz: Cannot stat: Value too large for defined data type|
> |-rw-r--r-- 1 root root 32251081571 May 6 2007 /root/sd/sd.tar.gz|

This depends on the libc but you need to build with large file support.
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 was it?
(the kernel has fstatat64 so it should be recent enough, but libc might
be too old, I didn't check since when these exist.)

-- 
Dominique

Reply via email to