Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5766356ybf; Thu, 5 Mar 2020 06:40:39 -0800 (PST) X-Google-Smtp-Source: ADFU+vsOBA+wLaQRsx9dSq2dIxeSTYuoHxOfRFiJPmnQmZOqTdcYIRoMbyujs1b5FryfSTyjqC8e X-Received: by 2002:aca:1a06:: with SMTP id a6mr5596448oia.148.1583419239129; Thu, 05 Mar 2020 06:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583419239; cv=none; d=google.com; s=arc-20160816; b=Xz++VVwsui7QbIlpuM1H/u4bdEn+/pFtJlGRgspqXm/HxT78Sh7D6LiKAHo9IV3uJ8 k/Nm1aJrQAvlV35pC59JdH4Om4g6wNE5xdTk+4xr3cOl1flHEeVHPRFHBT2xR0uLh2KI u16qM1ZQmggRZajuRyGTexxnhH8Z2vcrf1gpCRJhslFcr7QzBqIXrOMk7F/GVF9DqG/E piYuTTWmGa7iXOtsZe9FjlSaB82c3PpKEbGg/nPd4Qj98AW8CzZ15C7LmH7tU60rMzHf WFrwKoTXey9+kdcNcSwVs17qd0mx71QKiLWHS750EC7SkDw5WVJ5C+pScjKPM4Pudw2X 39Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=TP9pMLEuFFfcigfwVPNdkTMKm05VsLz8cLozAukb7nY=; b=iXa3S34ujPPZ/m797SJNLWQaFrqCqB2uUJy4fwVSOHxkQ/iWvMqQW4lniwaPYxmcsZ RAYNHvRqFbwiA43cNFZ1bKaG7mdD/tnxXRFH1HrPzhaF9YxSXWZTypipQKh3he8Xy+dN zEQAdbrspOYaJehbYL9eewV11OEQrPf1sZvtpr4uR2FPBERjwio7sLh/VchNSBRbsN4M c+G8wAfebUrSKMmwt9GBaZcpRrOFiIPZKT3/z4i3v6ZcLOfMT6bvCn2jtpe5IcafmcLK fsOCqABCz9OgL4E16++9UmQafXGa2cNts2GGy9/qsVBY0KYQVi4obs97LoUJ/noeYR4v 00RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JFkMSEmA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22si3263716oih.103.2020.03.05.06.40.26; Thu, 05 Mar 2020 06:40:39 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JFkMSEmA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgCEOik (ORCPT + 99 others); Thu, 5 Mar 2020 09:38:40 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:51847 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725963AbgCEOik (ORCPT ); Thu, 5 Mar 2020 09:38:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583419119; 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=TP9pMLEuFFfcigfwVPNdkTMKm05VsLz8cLozAukb7nY=; b=JFkMSEmAUdkkMhMfrOrzr1cEjKnx7nNR8dYKOz0Usb8WyznGRSERE9z9BQpsoqgIeBgL0y 70UCJCNYK2JL+9L7R4wDEUuxSnz022fzSmduRCBFDZ8JmOPCmRXw56ZS9+otqLXyP3tzNU hmpSunoNEE5DfPmUIWpWD1ihOTHJvzA= 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-43-4cKaHQjVP5iMo8p40VUiZA-1; Thu, 05 Mar 2020 09:38:37 -0500 X-MC-Unique: 4cKaHQjVP5iMo8p40VUiZA-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 873E4802B80; Thu, 5 Mar 2020 14:38:35 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-226.ams2.redhat.com [10.36.116.226]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11D7C73895; Thu, 5 Mar 2020 14:38:32 +0000 (UTC) From: Florian Weimer To: David Howells Cc: Christian Brauner , linux-api@vger.kernel.org, viro@zeniv.linux.org.uk, metze@samba.org, torvalds@linux-foundation.org, cyphar@cyphar.com, sfrench@samba.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Have RESOLVE_* flags superseded AT_* flags for new syscalls? References: <87y2sjlygl.fsf@oldenburg2.str.redhat.com> <96563.1582901612@warthog.procyon.org.uk> <20200228152427.rv3crd7akwdhta2r@wittgenstein> <87h7z7ngd4.fsf@oldenburg2.str.redhat.com> <20200302115239.pcxvej3szmricxzu@wittgenstein> <8736arnel9.fsf@oldenburg2.str.redhat.com> <20200302121959.it3iophjavbhtoyp@wittgenstein> <20200302123510.bm3a2zssohwvkaa4@wittgenstein> <3606975.1583418833@warthog.procyon.org.uk> Date: Thu, 05 Mar 2020 15:38:31 +0100 In-Reply-To: <3606975.1583418833@warthog.procyon.org.uk> (David Howells's message of "Thu, 05 Mar 2020 14:33:53 +0000") Message-ID: <875zfi989k.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Howells: > Florian Weimer wrote: > >> Will there be any new flags for openat in the future? If not, we can >> just use a constant mask in an openat2-based implementation of openat. > > One thing we might want to look at is implementing support for > lock-on-open/create and sharing modes in openat2(). Various network > filesystems support this. Wine, CIFS and Samba particularly might be > interested in this. But will those be O_ flags that need to be passed to openat? Ignoring locking requests on older kernels because of the openat flag handling seems problematic. Thanks, Florian