Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3457098ybf; Tue, 3 Mar 2020 06:24:28 -0800 (PST) X-Google-Smtp-Source: ADFU+vukO9bHi6ibL0aQB2bEar0XOwVov6TWlugdbJPHoqqNtNhCSFHLOZaOU8bcOJODLrSo7CzX X-Received: by 2002:a05:6830:1513:: with SMTP id k19mr3748494otp.9.1583245468717; Tue, 03 Mar 2020 06:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583245468; cv=none; d=google.com; s=arc-20160816; b=txIfklP0eMdHkIvXFdOIrC64NjzukTbT4gp73KpkMxLQr/ZvchlP6bNQY8Do0yuYtF oVvCCD5UCq+sQW61kqUNu2gsLXKWgQJ4g9bSQJNtGxU8Xki7Ck6MyLMG+AJwpSbQ7Oil 3obgYlQ1HqiyytU7oQnyYdYGmxf7M2T3RuDOVlLv0vTOwtF/T28rpQQPS59PiSz3c2p/ dO6mG2uzEofhEv8E/pcc2TpnseR9pOrOvrpmmfBfNl/iqz3UZGNZBjlqoGOWO7pGGnSP PuyVMmTXVSif9nfwgupUdQu18PdPQIynSMe5Ygbbk9O4bFa9/BW6zm6RFa82YwU83077 S+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3zNZdA4CeqPfuaSLxU4h3IGNTujBYxNQswaenREBYEE=; b=1Awdn7l0zde3Y+e7Cf4samC+m+c6vgnH+fgZIvcbnA6GYuIuxZbFUnxq+MKkgvF6lr Abv6A6scGgb9nv5lKf9x6yaHe7dEtO/1IoOWYl+d6keARYb+SxajGMVufsCEjCkr14N5 hW2v8w8zyKoOPhj4khqwixcTUiqvtu8ztoEXrHFjxxwLE51k5q7rfNO2i7p0UU0FHXnG RoZPfSxQX8+d2/MN3T/JJnYRXBzcYO7Vr0jdnZ02lcZp1Qe0VxvDRSYJrlzapr+7pzdd xoVmzGQhd9oouDzIjqJhmmpqXp5GIXmIvsXYal5+JTS8ag/QzlUYnYQ7wBoBy+M1u6eF WRJg== 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 f204si6700784oib.16.2020.03.03.06.24.14; Tue, 03 Mar 2020 06:24:28 -0800 (PST) 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 S1728924AbgCCOYH (ORCPT + 99 others); Tue, 3 Mar 2020 09:24:07 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:44239 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728158AbgCCOYG (ORCPT ); Tue, 3 Mar 2020 09:24:06 -0500 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j98Se-0002TP-2j; Tue, 03 Mar 2020 14:23:52 +0000 Date: Tue, 3 Mar 2020 15:23:51 +0100 From: Christian Brauner To: Miklos Szeredi Cc: Greg Kroah-Hartman , Karel Zak , David Howells , Ian Kent , James Bottomley , Steven Whitehouse , Miklos Szeredi , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] Message-ID: <20200303142351.vtc2ldqltev5jo4h@wittgenstein> References: <107666.1582907766@warthog.procyon.org.uk> <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <1509948.1583226773@warthog.procyon.org.uk> <20200303113814.rsqhljkch6tgorpu@ws.net.home> <20200303130347.GA2302029@kroah.com> <20200303131434.GA2373427@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 02:34:42PM +0100, Miklos Szeredi wrote: > On Tue, Mar 3, 2020 at 2:14 PM Greg Kroah-Hartman > wrote: > > > > Unlimited beers for a 21-line kernel patch? Sign me up! > > > > > > Totally untested, barely compiled patch below. > > > > Ok, that didn't even build, let me try this for real now... > > Some comments on the interface: > > O_LARGEFILE can be unconditional, since offsets are not exposed to the caller. > > Use the openat2 style arguments; limit the accepted flags to sane ones > (e.g. don't let this syscall create a file). If we think this is worth it, might even good to either have it support struct open_how or have it accept two flag arguments. We sure want openat2()s RESOLVE_* flags in there. Christian