From nobody Sun Jul 12 01:17:54 2026 X-Original-To: dev-commits-src-all@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 4gySP350zsz6kQxy; Sun, 12 Jul 2026 01:17:59 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gySP32hFZz4Fwy; Sun, 12 Jul 2026 01:17:59 +0000 (UTC) (envelope-from bz@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783819079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pCLO0kTTZRtx4PD240yU6SlkMP2AmIUewP2ROhbyMMM=; b=DHC5BMH69aJlZp3IoNhx+murJTKuuHrBPTtczpiT+3odHQsYfBKZbDfxpAVbtjooMBQ8ht sBkA0m5S23sWsCa87T5Gq3W8p/TIEtS9bGnDL68Faa99DvhNSS03ZRUX3v+0zcTCPlcLxA 1JwD9Hl8kWNBJXS0uGyiuF41JDGDDus7vqMhhXJ21Sj45gpDHbEXOfc1DRpMqewx6rtCJM L/XRslGXMJAsL8/68Iem1f2L40kKpx9ufyOBkoXLd3xhJlyTBC8DYUUgL1vjdxI90vh1NQ Ag0ySnH/x/abEczs/4X1CykvJqRw/MzEniuFNY4L717bqUQR2wD5ujdzahsX2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783819079; a=rsa-sha256; cv=none; b=mjOSAoUTARlqV7sOCvfxtO1fp8yaR+FxwxAFijEZKcV53mQVScOjpoimzIOJs3RXxUT7KE aBZJuST9f+37YxmdWCu1S4Ss7BmXggJQYX2jkrGStoT/apNPAQ58Cgs/0TFtbQFLFI53w7 ck0uzC7bXPkqlHZlV1f7D/BAbL1BUGZZOKu5irvK7J5HqcW0Bg+WHcsuRrW0o2k7a4mtAT QV+vTq6LS+nfXtDipdvGz44FhQ1AI2wSzaemzJAHsZJO/U8FWOtmCqhASLYTz8/945u2x7 RYoM3XXQPxFH9LnrJX+d840zzCIyXF7G+AW+mT6nLYlpWxdmRpeCOSzbLZlEiw== 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=1783819079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pCLO0kTTZRtx4PD240yU6SlkMP2AmIUewP2ROhbyMMM=; b=enDt0UV0jhbQCSUlbnPNrS29NUhUOWi0cEWAp83V0AvQl8UCYLCJ8Jmy2PJdkBX4zMAXjK Z4fR3QjueQuOM6S0uVi8wbGmSYUYCdvoJkZ4TRTv37bDkGyWAQ3dlI7uEuD88lida9ljGt JaPcRApK0TcbFA0NGCR219TnqFzgLgeS7q3qMKOvwClKro4kUMOaE6HHM5Nnm9r8pUmWPP +PY2HYXY1byf3tc4J5+WJh8r1RlNNE+J1jegYvXDKAnc//BR2PLpZf8RnARwjXTFd9JJ3e IixVElWNDd/arSmC+5laNMYdL6zdzAhBP01qlx0swTmcGj1vwL9+a84PH1UlbA== Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "YE2" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gySP30gZHzp3r; Sun, 12 Jul 2026 01:17:59 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 2A711A64805; Sun, 12 Jul 2026 01:17:28 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id EEB252D029E9; Sun, 12 Jul 2026 01:17:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id Qxaxd8XT3mji; Sun, 12 Jul 2026 01:17:55 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id AC60B2D029D8; Sun, 12 Jul 2026 01:17:55 +0000 (UTC) Date: Sun, 12 Jul 2026 01:17:54 +0000 (UTC) From: "Bjoern A. Zeeb" To: Warner Losh cc: Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: dc6c193bb4a6 - main - loader.efi: Add xz decompression In-Reply-To: Message-ID: References: <6a5299d0.26e5e.70437550@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-201433757-1783819075=:11296" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-201433757-1783819075=:11296 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 11 Jul 2026, Warner Losh wrote: > On Sat, Jul 11, 2026 at 2:47 PM Bjoern A. Zeeb wrote: > >> On Sat, 11 Jul 2026, Warner Losh wrote: >> >>> The branch main has been updated by imp: >>> >>> URL: >> https://cgit.FreeBSD.org/src/commit/?id=dc6c193bb4a67e2e9ee97d1e3ac3e2950bd16979 >>> >>> commit dc6c193bb4a67e2e9ee97d1e3ac3e2950bd16979 >>> Author: Warner Losh >>> AuthorDate: 2026-07-11 14:44:40 +0000 >>> Commit: Warner Losh >>> CommitDate: 2026-07-11 19:28:47 +0000 >>> >>> loader.efi: Add xz decompression >>> >>> We can now decompress .xz compressed memory disks, like >>> FreeBSD-15.1-RELEASE-amd64-disc1.iso.xz >> >> Thank you! Helps me a lot! >> >> We need to make sure the .xz is correctly padded if needed: >> see 4bf34c597c44a2393ac5ec483e9cecac128d8202 >> > > Earlier versions of my xz stuff had an off by one error that would trigger > that warning. But I fixed that so we wouldn't lose the last byte. If there's > still a partial sector at the end, it should be truncated, no? I used to pass a foo.xz file in the past in as an md_image and the foo.xz wasn't properly padded as xz doesn't pad unlike gzip and bzip -- at least that was my understanding, so that file was corrupt when trying to read it. That's what triggered the above commit by kib. What I realize now is that we may now transparently uncompress the xz first and then pass the uncompressed version to md. Is there a way to prevent that? For an mfs_root I would love to have the transparent uncompressions but couldn't so far and that case should be fixed now and will defintiively save me cycles, but for a general purpose other "file" I many not want it to be decompressed just stay there as a read-only copy as-is. /bz -- Bjoern A. Zeeb r15:7 --0-201433757-1783819075=:11296--