Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2004409pxb; Mon, 20 Sep 2021 09:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMR4veRkQ0DauKmpWpOLswd9JL661SyxmUv2vIVtrCnasosXXIpNnaQCNK77+jK/geF6N9 X-Received: by 2002:a6b:3e89:: with SMTP id l131mr19669436ioa.74.1632157146135; Mon, 20 Sep 2021 09:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632157146; cv=none; d=google.com; s=arc-20160816; b=e2mzo7l2UYttSwJkxkIPxgz52gMNY3vonMTd5i4cpy9wH4Pw1JIlOjURl6Kkzado1b r+MhDhK6HHuEiGWB88Zb0/CvqC2irngsliGxFIJD5/5jtD4vEGZ/oOdIxqBAAZLnogma 8ry99IIVkUhZK/+mNptesoAzHHcTh4XdHxma3fpP3hM3gEZ0fTjy6jsCCwJiZzfJ3GDe MrYHrITvbi5VsLIcwrIHpi5nWq2zfLtSNlpA2lyYsgKlGZnCvXVigRnDJ+0KBP1J7fIb yP1BI3IpNxChbkGL0dySy3puCFEyDkm2dEWToYnZp1bJsehMW7ir2FEXNsZKtyIf45vi dFlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eofAwNSQHggES8FnoNdSbxlwsVv5uIPZtDIw746OjHo=; b=WzYJ+Rl4jvKH+xbgW8QGUtVGsMn0vuee5SeXcDnzalx4E+9zljczjNoexwx/Hm5yl5 dthMtydUGDeiZ9ZHR1v/yAamhF/WQTMUKbwDJ82c8CimBTr3wZbtz5hMdDqstZOq/a/n IFlnIJE+t1YuSbrHi1+G3P3Kx7KwjMsjKPGCkTRN3/16DDC5hGJWq0ingX5V5VT82113 +QTZZ6HVTo+KjpAAfzH1+M6i+hklYnCC1p/W/A0CEIcETaEPUGjVHZwduAMj/GAYVzqe qIV+82t+k93mwv1FAL9HjL1jkair5bfoWTWlLlfdyXMN3lyCkfRmytptScQOh14ACZaZ 8wNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RE5ikbAj; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si9699933jaq.60.2021.09.20.09.58.47; Mon, 20 Sep 2021 09:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RE5ikbAj; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231537AbhITQfR (ORCPT + 99 others); Mon, 20 Sep 2021 12:35:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52453 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbhITQfR (ORCPT ); Mon, 20 Sep 2021 12:35:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632155630; 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=eofAwNSQHggES8FnoNdSbxlwsVv5uIPZtDIw746OjHo=; b=RE5ikbAjfJxkCve1XzNDlipsl/JONa5BluAFeHFOoEUr0tLGrfCOG5lKYRYZahYu2b3BTM eTwlNT+UxM4AZJZaVjM1JAL2V4BtEg6iC2RQmHSH2106PfBKhcbQ/cUsIlivIrEj4JSQeC qLZP6MnyalF07Lcg5CRJCIa0WwHOI+4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-534-lviKKn19PQC-tNZukbZv5w-1; Mon, 20 Sep 2021 12:33:48 -0400 X-MC-Unique: lviKKn19PQC-tNZukbZv5w-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E3AD1100D68E; Mon, 20 Sep 2021 16:33:27 +0000 (UTC) Received: from localhost (unknown [10.39.194.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F2D46B545; Mon, 20 Sep 2021 16:33:27 +0000 (UTC) Date: Mon, 20 Sep 2021 17:33:26 +0100 From: "Richard W.M. Jones" To: Andreas Dilger Cc: Theodore Ts'o , Eric Blake , linux-ext4@vger.kernel.org, libguestfs@redhat.com, lersek@redhat.com Subject: Re: e2fsprogs concurrency questions Message-ID: <20210920163326.GA16016@redhat.com> References: <24A05FA3-F618-4469-BC0A-E19A425A0E36@dilger.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24A05FA3-F618-4469-BC0A-E19A425A0E36@dilger.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Sep 19, 2021 at 04:39:01AM -0600, Andreas Dilger wrote: > What I don't understand here is why not just use a network > filesystem that is explicitly designed for this task (eg. NFS or > Ganesha on to of ext4)? nbdkit-ext2-filter is very niche, but it's quite different from anything NFS can do. For example: $ nbdkit --filter=ext2 --filter=xz \ curl http://oirase.annexia.org/tmp/disk.img.xz \ ext2file=/disk/fedora-33.img $ nbdinfo nbd://localhost protocol: newstyle-fixed without TLS export="": export-size: 6442450944 content: DOS/MBR boot sector uri: nbd://localhost:10809/ contexts: base:allocation is_rotational: false is_read_only: true can_cache: true can_df: true can_fast_zero: false can_flush: true can_fua: false can_multi_conn: false can_trim: false can_zero: false $ guestfish --ro --format=raw -a nbd://localhost -i [...] Operating system: Fedora 33 (Thirty Three) /dev/sda3 mounted on / /dev/sda2 mounted on /boot What we're doing here is exporting a compressed ext4 image over HTTP and then accessing a VM image inside it. (This is a contrived example but it's similar to something called the Containerized Data Importer in Kubernetes.) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html