From nobody Tue Mar 26 08:33:51 2024 X-Original-To: freebsd-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 4V3jl4413fz5F7lm for ; Tue, 26 Mar 2024 08:34:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 4V3jl42Fs8z49ph for ; Tue, 26 Mar 2024 08:34:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-568c714a9c7so6059879a12.2 for ; Tue, 26 Mar 2024 01:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1711442044; x=1712046844; 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=pt6RDAok6jCeVX16GiGHfhtESRz14QFCtA6Mc6v9P/o=; b=zB9LPiKLOCQ/bKQfU45LgVsmRRBpwmo64Un6MgixL89OKw0xCUSKlTM+LCWWIhvWZg JIKS8CkQY4AdBOLkENYizxrzbnbM6ddsHMsb45xsXwcOV33i84AbH68yGGyDIrbK+q3z pUjcyZ576t9NA8xIU96Qiy/6eVNWYHY/hU7xz4QpNXC5/f+UN5SKmTwi3ZeCjolWhnLN 0GCqDVLfxQiw3iomakWCS7PV9elDlqHE+bWrg/H/KIJdYJSHhMkL3UXN8Ao9Fm8xRSls 4Pjx751DxoNVGL3oVcpot9BG9M5f9QAw/JKu5X23d5zE+BxgkD1hQcOaM+9cS/lgvwlZ 4cKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711442044; x=1712046844; 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=pt6RDAok6jCeVX16GiGHfhtESRz14QFCtA6Mc6v9P/o=; b=bWvP8TTxh4vBkfQiqXCLcrPHVTxCvMUcnFx5ZqAJEyYpyeTC9m0uE2BI9tzWWBGYen 67yh6TpBIjrRRGPA+Uun1RQO/FSNCiExOxrpj5Xabu3/9SFVy6g1kgIXdwxi5MVxsdrg zwY+YMx5liJUMcBzk2qTkjE9dRB+4DSekyt3NtKGnS30t7eW49TBSX/bRIXDN8NM3x3s n1fVIo7xr+cNt22LnahRfXvX6pSA8HdPzLQfEt7JD3Dqd2wx/jJMjWNdjC7hA45Ese1N fMehJ51Nw3PZEBrJVYxz41Zb1DchblGjrp9Rlbe2NTjLBQ0QFRSHlNSw2gq+kjht4gtt ZEmQ== X-Forwarded-Encrypted: i=1; AJvYcCVs922wdnUbs96LP7obxvyOUU0M9D7+gCnrz0rlVHrdjHLkd80EurL6voOBxeJyMZ6E82AimiH82I5Okd2fQJliTdv/CeBWh+tVBm8= X-Gm-Message-State: AOJu0Yx2rliL4WxnDLxyhsc+2lmzr+QRblErEMeiQQHs3Thp81Y2pZrY XWt6y35XVArSWZfvhIYSx2t95ofppTp004ERw1FL/Zw5t+t2KtxwmIA666sLia+XobuQ6RCjI0i JU1TJreVnM43pJUkswpu4vzX6e59cYY4v328uBPGVWzPnfokiDdo= X-Google-Smtp-Source: AGHT+IEO4scE/t3yJuSLTxfTMI+mtzs9vj1V29HTzZaMoqh0TBnUtWzgBoz7bCe4KN8i7NNhQnMXYjwf+TBsKF7WZTI= X-Received: by 2002:a17:907:7283:b0:a47:4c8d:a950 with SMTP id dt3-20020a170907728300b00a474c8da950mr5420235ejc.34.1711442044073; Tue, 26 Mar 2024 01:34:04 -0700 (PDT) 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: <86edbyh0od.fsf@ltc.des.dev> <867chpg2d2.fsf@ltc.des.dev> In-Reply-To: <867chpg2d2.fsf@ltc.des.dev> From: Warner Losh Date: Tue, 26 Mar 2024 09:33:51 +0100 Message-ID: Subject: Re: TarFS To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= Cc: Mark Saad , FreeBSD Hackers Content-Type: multipart/alternative; boundary="00000000000017520606148c270d" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4V3jl42Fs8z49ph --00000000000017520606148c270d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024, 3:21=E2=80=AFAM Dag-Erling Sm=C3=B8rgrav wrote: > Mark Saad writes: > > Two other questions ( I have not tried to read the code , please > > forgive my assumptions ) behind the scenes are the tarballs extracted > > over some fs, or mounted directly and read ? > > It scans the archive, builds an index of its contents, and reads what > you ask for when you ask for it. No additional disk space is consumed. > This is why compressed archives can be very slow. > > > Second are there any contradictions with tarfs ; can they be nfs > > exported, mounted on a tmpfs etc . > > They can be exported, but I'm not sure what you mean by =E2=80=9Cmounted = on a > tmpfs=E2=80=9D. > I think he means does it work witg unionfs. Side question: how hard is it to add and offset of tarball mount option? Warner > DES > -- > Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org > > --00000000000017520606148c270d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Mar 26, 2024, 3:21=E2=80=AFAM Dag-Erling Sm=C3= =B8rgrav <des@freebsd.org> wro= te:
Mark Saad <nonesuch@long= count.org> writes:
> Two other questions ( I have not tried to read the code , please
> forgive my assumptions ) behind the scenes are the tarballs extracted<= br> > over some fs, or mounted directly and read ?

It scans the archive, builds an index of its contents, and reads what
you ask for when you ask for it.=C2=A0 No additional disk space is consumed= .
This is why compressed archives can be very slow.

> Second are there any contradictions with tarfs ; can they be nfs
> exported, mounted on a tmpfs etc .

They can be exported, but I'm not sure what you mean by =E2=80=9Cmounte= d on a
tmpfs=E2=80=9D.


I think he means does it work wi= tg unionfs.

Side questio= n: how hard is it to add and offset of tarball mount option?

Warner
DES
--
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org

--00000000000017520606148c270d--