Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp77397imm; Thu, 12 Jul 2018 14:31:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc5o9+rvCsZihrizQZQQgdusKAMalcCBXzFm/Qsm+nYVkoFMXDx94EDP1jrOYFppe5Fw7cL X-Received: by 2002:a65:4c02:: with SMTP id u2-v6mr3645507pgq.364.1531431076484; Thu, 12 Jul 2018 14:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531431076; cv=none; d=google.com; s=arc-20160816; b=GxdcYuVIQXWro7kGBLjY7i6a1SQe8RAyjgSf0wGGRXHFDX9y6OtPo/+6pGA9HX2kJB evqJbucZkLcHbksBFkn6IvbAhq620x8emq+WSPagCF3+6qMjHjIDSnGMvkSZWFfFNtKU i7fNB5qJS/5+qUUZP5y7cvc8l8tGq4feg/lIot2Sjfx/+R21ir62FOWIoGOqv7l8mBMK JsGztmtRPpMpaIu03k47nuRX2xc8KX6245JvnZAYeJOrLY1qjlonQAbBk4WCanq5QFE+ SxP4Kuup571UWuIlzsvB6IudWl7dO1+C5l8c+9itEatMRHv9/D4eu4aDCLoo0YsoC9qR 3pVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Hp3wP5HIeaAb1MyubyDQbhJGZ8EMn/j9IYJKly3yMhM=; b=Rp3nEWA/h3T7CymgJsaSb4EPlHl6lFWkblJRQVbAk863NXX/Byq05XzSX0CkQdwX73 +l3zS78T921cYUhee1idR+zzQ6SK2xCQtTQbju/U2NMK4jufM29zKVMRZgTJo4YxSa2f vPiavQKzHBOmxr2j0i2m8KoUEIVGqFdTKNf4F9xApw3Iv7sujgx9J8cgrc/Ak2W4p7XM dD7DTlX+uIfQJm3nyal5qMkeBKH4uNTpRdzLI1SSEkzodBvtUR2ygkzcNW2XhCaHkkao UKv6dV7S5ZsLlfcZdGNikQPgOq7xgQbjEUjHXNxVuC6n1BEtkmFOgP+L3XPt3V/Tcgby 8Iqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="BW/ooRkr"; 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 q14-v6si22514486pgm.512.2018.07.12.14.31.01; Thu, 12 Jul 2018 14:31:16 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="BW/ooRkr"; 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 S1733084AbeGLVk6 (ORCPT + 99 others); Thu, 12 Jul 2018 17:40:58 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:36014 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbeGLVk6 (ORCPT ); Thu, 12 Jul 2018 17:40:58 -0400 Received: by mail-it0-f67.google.com with SMTP id j185-v6so8828786ite.1; Thu, 12 Jul 2018 14:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hp3wP5HIeaAb1MyubyDQbhJGZ8EMn/j9IYJKly3yMhM=; b=BW/ooRkrcSJ68tbGYBNaUcbRRway2zwDtodrEnY3DyK0G56l0wMvbRMWfoQF/8ac2T uo05Bni8pYUcqyiaAd6qd8f6skVBSKRxf4cZYEmQpHUXqb5p1RZ57+VbV1l+0h9rtOB3 2JyQpJPOKcfQfWOSDPVZA5N7NhW1/C9JUCtgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hp3wP5HIeaAb1MyubyDQbhJGZ8EMn/j9IYJKly3yMhM=; b=lnMJrasBpO//KXjaPL9XiEedfkBhLNbPgvsf+JlKH2WsIZAlU/GFNsPNWNWMqElHxb E0pZPn5Veda8tTm3JaHu9FhkUBaESft2muzcAmXNfIZ9vgTKRbQUXsEVWXxM/s7i1fuF J2sJ/TQf3IpIoy4kIc6NvidHpCEIuEA9dC31P0junUfeS/fWVNR++zI1UisrTo2m5ydj mgCP3Gy3CLaptW3Va7j7hYq6PY+XYiDmtJx0WP0EOEZejVyKlAz9nBIMHG9ODFbrHQEA /JMlOM+q1ztYd6G3dpinhXUeJ6azxWZOEUybtW51jHwZmpZreo7yaak4q/vsmp87X/ry dhhQ== X-Gm-Message-State: AOUpUlHElbHHlCXknfAGWBaGErR4P2qzI1IG09W/+dZDSyW8Bt6DeTcI O8X8MrlHZaCcNwICw+xCUGqJakEv937KrnOjIJU= X-Received: by 2002:a02:702:: with SMTP id f2-v6mr3151427jaf.70.1531430973467; Thu, 12 Jul 2018 14:29:33 -0700 (PDT) MIME-Version: 1.0 References: <153126248868.14533.9751473662727327569.stgit@warthog.procyon.org.uk> <153126264966.14533.3388004240803696769.stgit@warthog.procyon.org.uk> <686E805C-81F3-43D0-A096-50C644C57EE3@amacapital.net> <22370.1531293761@warthog.procyon.org.uk> <7002.1531407244@warthog.procyon.org.uk> <338BC3C4-F3E7-48F0-A82E-2C7295B6640E@amacapital.net> <17749.1531429218@warthog.procyon.org.uk> In-Reply-To: <17749.1531429218@warthog.procyon.org.uk> From: Linus Torvalds Date: Thu, 12 Jul 2018 14:29:22 -0700 Message-ID: Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] To: David Howells Cc: Andy Lutomirski , Andrew Lutomirski , Al Viro , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn , Tycho Andersen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 2:00 PM David Howells wrote: > > > for example: > > fd = fsopen("ext4", FSOPEN_CLOEXEC); > fsconfig(fd, fsconfig_blockdev, "dev.data", "/dev/sda1", ...); > fsconfig(fd, fsconfig_blockdev, "dev.journal", "/dev/sda2", ...); Ok, that looks good to me. It also avoids the parsing issue with using an interface like "write()", where the expectation is that you can append things etc. Linus