On 3/9/22 10:56, Antonio Diaz Diaz wrote:
I really do not want to do such things in tarlz. GNU tar aims at working
everywhere (and supporting all tar formats), but I just want tarlz to
work correctly on well-behaved systems. I think I'll just make tarlz
emit a diagnostic when it finds a symlink with a st_size of 0.
This seems like something the restic development team probably needs to
fix on their fuse system implementation, but admittedly I'm not an expert
on how fuse systems work. I will reach out to them to see if indeed this
is something they can/should fix.
Thank you. Fixing their fuse filesystem implementation is the best
solution. It would spare other tools from working around the bug, and
would even make GNU tar more efficient at reading symlinks (no need to
loop).
The symlink size of zero was indeed the issue as to why tarlz would not
work with the Restic fuse filesystem. I worked with someone from the
Restic team to update their fuse filesystem implementation to comply
with POSIX symlink sizes. After making the updates tarlz worked great.
More info in the link below:
https://github.com/restic/restic/issues/3667
Thanks again,
Jason