From nobody Wed Jan 17 16:27:36 2024 X-Original-To: hackers@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 4TFWWW09jdz5884G for ; Wed, 17 Jan 2024 16:27:51 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TFWWV2HN8z4J31 for ; Wed, 17 Jan 2024 16:27:50 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=wp7jghgm; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::530) smtp.mailfrom=wlosh@bsdimp.com Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5571e662b93so9367456a12.2 for ; Wed, 17 Jan 2024 08:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1705508869; x=1706113669; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lFPRwEsUIg/GExPC1qfzVkgDwwaZsrYEbvRjFr8wHNg=; b=wp7jghgmaf6BvPi7jQIl4KL4cqUuKo0PSWYUhgMaxoWtFB3cQlXrxXEXtSLc4vQU5E DHAnlCmMQaeGFP1hJ1aDYteR7qgrNY0JVC+X0HtXAsHLf9GMfkj5kWfkDpMje20KDPJz AZ+qjRgmivgCcjZ9oKgU0II9r4GR5WV/qsIS8hHeFOPghkl9NOqZTiyTuNvrbRNG68NA uyawuuwmlaVODc5N5bB0rvCoYyYuoymRwgGyMtoZHBX2O4enup0/9pkReK3kGlS2s41/ thtzTZAJKX4r+Ywe7Q4NScSupFPMeWFPJ9D5Azg3VVTd331cOOyOvyj9H9jtLdIT7u2+ s2rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705508869; x=1706113669; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lFPRwEsUIg/GExPC1qfzVkgDwwaZsrYEbvRjFr8wHNg=; b=kdXFNBIoBwZmaGpdvxhbJrG/C7NpIkm8II7N//QhgtriIFEftqXydX+ACsI6+QEQ1W YuII6INYJFwkhAstel0Z4OiBALSM5XsPgrsqLSHtdOy/MtgFpggoQnpoVBPdRVsAPby6 MzY0416hrgNdLkLSjYp43DmpuQ8jAd8RF5ijON+6+lEhNwWDd9BUztZMnFG/uEoJWJ9J ypEEXxJFK4jLxI195ux48HFrkVo53uQ57EoqWmISKG86SoE03taZXCHlOcIwyT3HBA5T r9h3K/l985IeQxrmsx7ss6UxSFXl54X7cpkfiOmtR+7qO6HHKXYLgUc5BTsAPTEV00Qg dljA== X-Gm-Message-State: AOJu0YzT97fiPSZ7ZP+X+a1M75ljClUew8A/NgjL3gs9nRGJG+b8MIDd ojFJEktRBfaLOf974XnQHEidWTgtVFwNXhoDMsPk10PdzAsr9w== X-Google-Smtp-Source: AGHT+IEZch6EMVvtb9+copBrPkEW2hCSBEtFOzvhthYhV0AkBgOQqXM3LH/c7nbv9E5yn7wAlv//iCgyfTZpM6wNr9s= X-Received: by 2002:a05:6402:3514:b0:554:a300:5a72 with SMTP id b20-20020a056402351400b00554a3005a72mr6405484edd.11.1705508868444; Wed, 17 Jan 2024 08:27:48 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Wed, 17 Jan 2024 09:27:36 -0700 Message-ID: Subject: Re: libsa xzfs_fsops? To: "Bjoern A. Zeeb" Cc: hackers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000043e755060f26badc" X-Spamd-Bar: - X-Spamd-Result: default: False [-2.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MISSING_XM_UA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::530:from]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4TFWWV2HN8z4J31 --00000000000043e755060f26badc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2024 at 3:16=E2=80=AFAM Bjoern A. Zeeb < bzeeb-lists@lists.zabbadoz.net> wrote: > how hard would it be to add xzfs_fsops to libsa like we already have for > gz and bz2 and lz4(undocumented?) ? > It wouldn't be horribly hard, though those hooks are for filesystems full of files that are compressed, which is funky to generate and not well supported after boot. Patches to fix the lz4 oversight are welcome. The loader was a dumping ground for many years, and it grew lz4 support during this time. It would also almost certainly not be in the x86 BIOS boot path: that's already too large and so it's closed to new features (at least by default, you can customize it however you want). Warner --00000000000043e755060f26badc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Jan 16, 2024 at 3:16=E2=80=AF= AM Bjoern A. Zeeb <bze= eb-lists@lists.zabbadoz.net> wrote:
how hard would it be to add xzfs_fsops to libsa = like we already have for
gz and bz2 and lz4(undocumented?) ?

It = wouldn't be horribly hard, though those hooks are for filesystems full = of files that
are compressed, which is funky to generate and not = well supported after boot.

Patches to fix the lz4 = oversight are welcome. The loader was a dumping ground for many years, and = it grew lz4 support during this time.

It would als= o almost certainly not be in the x86 BIOS boot path: that's already too= large and so it's closed to new features (at least by default, you can= customize it however you want).

Warner=C2=A0
<= /div>
--00000000000043e755060f26badc--