Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp827735imm; Wed, 11 Jul 2018 11:38:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdP4CVHlPtZXrRwc/h78HolNrampPaXIwZdKk3D8lXhYKPae61Y56u7qVzpCZr0iiw6kXXm X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr29156469plc.341.1531334290287; Wed, 11 Jul 2018 11:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531334290; cv=none; d=google.com; s=arc-20160816; b=nYD0kqCvksQgn67lmexi2lIjT+JbfS1Vko+t+Zsekk+oc2M2dhMmjn5hXFjd6M/iYf HCUtSw7mTcvCFo6zZIqkgWghYo37mkQMvQa/9rRD0zXW8Pgap9Gaj3PzGlJ03V/sxnzC wTfl8AujYwf8dE38PzW4O6ec8pntX+eBZaGrwLDzEnsh28pFFccsbGaMvuV8bK3DD323 jBohJAiu5oaPxqF9EWYjy7ZqUbOrs0HWcGxSTzO6RHHS4Hyug2clhoHowAwNfczNhWql fxIWGlso7F4HUCdr9whPDYoibvsF48iXI/XfVgN3wVZuBihmGMHegOMOENGpRmPaMS5h PfWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=KzGSfVnuwjza81gjNbwKLerVDX9HOJZY+i+5qsb3qUI=; b=uLgm1wwx/quu1gvHU4MOfNFNlDf58mcM5HaAsjn3k60tgYgCXLyujU0HSADoIAsK4i tMxS8qrbKZfvRSXAC6JE61iQ6eTVQZCZBj8LSaHX4BHJlcAgtDzY4XVVH746uZbtj1Hy 9E+/TzNPkE7wqkcjZuGsRfgRvlVUGp+I3HZno8ma4QK2/gGS8uxDfQOALZowoNmPZyi0 wmph+mvpKALY8dYZhgaPXZaSbeRMp6wBU8tLLxEROh4ioRbuyMnYiGj5gqrYpJ/IC29H QccnPR4BA3mF3IuDIzOhkoLz2t5JQHmr0wFvZ8Yl0J+5djYtriSMdpM1WE6ODyF5s3VX BWaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18-v6si18595186pgg.250.2018.07.11.11.37.55; Wed, 11 Jul 2018 11:38:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389507AbeGKP5C (ORCPT + 99 others); Wed, 11 Jul 2018 11:57:02 -0400 Received: from ms.lwn.net ([45.79.88.28]:40396 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732411AbeGKP5B (ORCPT ); Wed, 11 Jul 2018 11:57:01 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E70217DA; Wed, 11 Jul 2018 15:52:02 +0000 (UTC) Date: Wed, 11 Jul 2018 09:51:59 -0600 From: Jonathan Corbet To: David Howells Cc: viro@zeniv.linux.org.uk, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] Message-ID: <20180711095159.08e5435c@lwn.net> In-Reply-To: <153126264966.14533.3388004240803696769.stgit@warthog.procyon.org.uk> References: <153126248868.14533.9751473662727327569.stgit@warthog.procyon.org.uk> <153126264966.14533.3388004240803696769.stgit@warthog.procyon.org.uk> Organization: LWN.net X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Jul 2018 23:44:09 +0100 David Howells wrote: > sfd = fsopen("ext4", FSOPEN_CLOEXEC); > write(sfd, "s /dev/sdb1"); // note I'm ignoring write's length arg > write(sfd, "o noatime"); > write(sfd, "o acl"); > write(sfd, "o user_attr"); > write(sfd, "o iversion"); > write(sfd, "o "); > write(sfd, "r /my/container"); // root inside the fs > write(sfd, "x create"); // create the superblock A minor detail but ... the "r" operation mentioned above is not actually implemented in this system call. jon