From nobody Fri Aug 13 17:20:14 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AEB9E17572DD for ; Fri, 13 Aug 2021 17:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmVgL4S9Wz4YxL for ; Fri, 13 Aug 2021 17:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 777FF12165 for ; Fri, 13 Aug 2021 17:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 17DHKE6c097898 for ; Fri, 13 Aug 2021 17:20:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17DHKExM097897 for bugs@FreeBSD.org; Fri, 13 Aug 2021 17:20:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257817] tar/libarchive: cannot archive/recreate hardlinks to absolute symlinks Date: Fri, 13 Aug 2021 17:20:14 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mandree@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257817 Bug ID: 257817 Summary: tar/libarchive: cannot archive/recreate hardlinks to absolute symlinks Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: mandree@FreeBSD.org CC: bugs@FreeBSD.org Blocks: 252184 +++ This bug was initially created as a clone of Bug #257816 +++ affects FreeBSD 12.2 and 13.0 after a user reports against e2fsprogs, I conclude that restore(8) is broken and cannot faithfully recreate a hardlink to a symbolic link. tar(1) with libarchive(3) fails in a similar vain. I am attaching a demo script that uses two 20M sized swap-based md(4) devic= es, formats them with newfs -U and sets up some corner cases with symlinks=20 ### The error in question is, for dump/restore on 13.0: restore: warning: cannot create hard link ./usr/local/sbin/hardlink-to-abssymlink->./usr/local/sbin/abssymlink: No su= ch file or directory mtree verification: sbin/file:=20 link count (1, 2) usr/local/sbin/abssymlink:=20 link count (2, 1) usr/local/sbin/relsymlink:=20 link count (2, 1) usr/local/sbin/hardlink-to-relsymlink:=20 type (link, file) ./usr/local/sbin/hardlink-to-abssymlink missing and consequential differences shown with mtree. ### The error in question is, for tar (libarchive) on 13.0: ./usr/local/sbin/hardlink-to-abssymlink: Hard-link target './usr/local/sbin/abssymlink' does not exist. ./usr/local/sbin/hardlink-to-relsymlink: Hard-link target './usr/local/sbin/relsymlink' does not exist. mtree verification: .: modification time (Fri Aug 13 19:12:46 2021, Fri Aug 13 19:12:47 20= 21) ./usr/local/sbin/abssymlink missing ./usr/local/sbin/hardlink-to-abssymlink missing ./usr/local/sbin/hardlink-to-relsymlink missing ./usr/local/sbin/relsymlink missing ### gtar from the gtar-1.34 (archivers/gtar) succeeds! Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252184 [Bug 252184] sysutils/e2fsprogs: checksum mismatch --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=