From nobody Sun Dec 25 22:32:03 2022 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 4NgFyr4dp4z1J3pX for ; Sun, 25 Dec 2022 22:32:04 +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 4NgFyr2nlmz4DSB for ; Sun, 25 Dec 2022 22:32:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672007524; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qruayRIs6k1HIeuKSoFZ3BkN5XzAn7jXVS+0+CeAos4=; b=EFis3um6jf8Dg2td10I9HSOn6znrNQ43Hk0skMS+Vbgo7dK841MtkUROzv4BwEuFdWbLz9 SFkDixdNr+8j3b4J7hD+1qt2e0nlTkamsJ9Fq7+5qG8q7B6/rwuIn6BBQ0wjrOuP28zW84 zgjc3QQy82F8iak/vkmaf8XwjGr9vfT/RXQtdSVi7OmSormZTI+6q6oqCamkCxdHAmjKxe g2S7UMlBYJkxrCC5MOnBc0THwM8Dkt28055Fijo0gacpnFlXGRBVC2duqO2WxHCE1JK7NK COnZWMvXoM1mmQoYOQoN8F40ODAp7abh/pRoOBYV3xz/WnvwrBX9FdjT14RLNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672007524; a=rsa-sha256; cv=none; b=pu0xGdDnQkWP505NwZRyDPKX+P5YVTqGJSrvwHSAuv/NiZOWnEzZ9+SZ/kxfkiSFGpjtla QCnusBYfZ41+Qf9mgFLus4eIRPrhuVv/qBSVZJPG0MXEWEprPP1PJQQnYotphCIFUZNC9t xbg7oQc63md/Aq2kiEre3YURtlZD2kyRHCsb6YBVTa9jNUb/WW5bYNc56OGwibpaT+wWaO yBOgsco0h3xjZw6pJuRUxV359Cfplzd7eN/v7uq9WYPYPxMP2IQdvUwUbxVBcShvG/Wqid G8FaDtyoPdexNgMpdfcOpm9vBQia3EIQ0R/PoP+2vWYVTIXaQLzBX3UsgoRlLQ== 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 4NgFyr1tFCz17rF for ; Sun, 25 Dec 2022 22:32:04 +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 2BPMW41q043585 for ; Sun, 25 Dec 2022 22:32:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BPMW4mk043584 for bugs@FreeBSD.org; Sun, 25 Dec 2022 22:32:04 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 268562] bsdtar --fast-read not working when reading archive from stdin Date: Sun, 25 Dec 2022 22:32:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rudi@mip.xs4all.nl 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 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=3D268562 Bug ID: 268562 Summary: bsdtar --fast-read not working when reading archive from stdin Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rudi@mip.xs4all.nl Steps to reproduce: A (large) TAR archive has been written to a raw disk /dev/da4. The disk (1T= B) is much larger than the archive (160GB). Restoring a single file may take a long time, as tar reads all the way to t= he end of the archive. This can be solved with the -q option: $ tar -xzOqf /dev/da4 myfile | md5sum Result is the same, only much faster. The checksum is correct. So far so good, but when tar is in a pipeline, it is slow again: $ dd if=3D/dev/da4 bs=3D64k | tar -xzOqf - myfile | md5sum Actual result: It appears the -q option does not work when archive is stdin (-f-) This looks like a bug of the (bsd)tar program. Expected result: I expected that the tar program would exit and close its input and output after retrieval of 'myfile'. This would break the pipe to dd, and it would = stop as well. Anyway, if dd is killed manually after the md5sum cpu usage has fallen to 0= %, the correct result is shown. It would be nice if killing is not needed. --=20 You are receiving this mail because: You are the assignee for the bug.=