From nobody Fri Apr 19 18:26:26 2024 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 4VLjlQ5Gz8z5HWDs for ; Fri, 19 Apr 2024 18:26:26 +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 4VLjlQ2lkGz4mLH for ; Fri, 19 Apr 2024 18:26:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713551186; a=rsa-sha256; cv=none; b=wwsbwbePJ1cK2xjEkNYwWZcdkE2x6gg8HcKS37NCsCADvh4d37XkKVgpOiFmM6PPomeFVU uHEx+ud9ZecNLH0nx7N47XmVpvyWwrJRuyI3OTKC7Z4q2uNY5so1LSX65oDawjLDOIz3+i Gxwry2K3UhP5MXGogPlCbI8qkqZRVvI4JqTiKyiUQfbur6A3vwHszkdXUpVTTZFCItAi95 rU8iD7V292Y59kjGgDMzsx0RT3nOTn7Z65pdN+CHKr8o8ubzhqT5oSWPJXIYpXO6mRF5br 8SyQUWYOhDf14W6NT9JhQVtJ+WPXl60sYNBv0kAGrQAOiIbBe1+HVRg/0iOnqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713551186; 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: in-reply-to:in-reply-to:references:references; bh=hXx5ymH8uexahYTg3Cc/AFcebbdZOqhmc8cDylytJeg=; b=uBc2o5HOLTVIy2O4kLFzAwpY+Vz6Rutr09tYiGXTYIXbKAh1eSZtM0VhR6RFy4JHz1l4G7 oBp/dzFG519DOF+H2YHRlhHoCdekjJsgeO/XyCKF4jasCsnvOcCddGDeBpk945WlNt5wP4 3lgfkL+qTOWzZgFoKk/k0iFl6sc26H7jxjMXzdXS0prai8TjDiBKyZ4TZj4dQGyFnK67yL mnRMDYg2ursLMMTox55ghV9FTTSMVDqpKTFuVGYlA7kwqDWF14Ts1hiTCy7kkEsHE4Ni9K 4G4VlJl5KmANLJOcGml+1ojUMWn7Xes9C0tSFrDCRThiA6SCb9j98+oZJhG53w== 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 4VLjlQ2MGTz13Pf for ; Fri, 19 Apr 2024 18:26:26 +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 43JIQQLc067231 for ; Fri, 19 Apr 2024 18:26:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43JIQQFW067229 for bugs@FreeBSD.org; Fri, 19 Apr 2024 18:26:26 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 278440] [UFS] unxz makes a file which reports wrong usage block size by /usr/bin/du Date: Fri, 19 Apr 2024 18:26:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: uratan@miomio.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278440 --- Comment #2 from uratan --- (In reply to Marek Zarychta from comment #1) I've confirmed that rsync with '--sparse ' option makes 'the strange' file. +------------------------------------------------------------------- |% du test1 >>|909 test1 <--- has sparse file | |% mkdir c0 |% rsync --sparse test1/FreeBSD-14.0-RELEASE-i386-memstick.img c0/ | |% du c0 >>|909 c0 <--- sparse condition is kept(?) with 'rsync --sparse' +------------------------------------------------------------------- I did not think sparse-file to be used so aggressively. My problem is not a BUG and answered. Thank you. - * - * - (Here from just a complaining, please ignore.) There are still so many things I don't understand... I am not going to like sparse-files... +------------------------------------------------------------------- |% du test2 >>|1041 test2 <--- has normal file | |% mkdir c1 |% rsync --sparse test2/FreeBSD-14.0-RELEASE-i386-memstick.img c1/ | |% du c1 >>|909 c1 <--- sparse file re-generated ! +------------------------------------------------------------------- ... In other words, it simply treats the output as a new independent sparse-file and does not inherit / keep / preserve the condition of the original sparse-file ?? +------------------------------------------------------------------- |% du test1 >>|909 test1 <--- has sparse file | |% mkdir c2 c3 c4 |% cat test1/FreeBSD-14.0-RELEASE-i386-memstick.img > c2/F.img |% cat test1/FreeBSD-14.0-RELEASE-i386-memstick.img | cat > c3/F.img |% dd if=3Dtest1/FreeBSD-14.0-RELEASE-i386-memstick.img of=3Dc4/F.img = bs=3D1m |1040+1 records in |1040+1 records out |1090527744 bytes transferred in 23.289522 secs (46824824 bytes/sec) | |% du c2 c3 c4 >>|909 c2 <--- cat ... I was surprised by this. |1041 c3 <--- cat | cat |1041 c4 <--- dd if=3D of=3D +------------------------------------------------------------------- ... /bin/cat detect sparse-file and handle as it if output is not pipe ??? (I used to think cat was more simple and dumb) Or tcsh does something ???? How know it is sparse ????? --=20 You are receiving this mail because: You are the assignee for the bug.=