Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4680500rwo; Tue, 25 Jul 2023 09:22:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqoyLUd+/AVw3W7SStjyLoOr+9Vo2WBaxcDvyPB6FlAqKvx0P72COyHcy4Ch1BNmwMBt8Z X-Received: by 2002:aca:2215:0:b0:3a1:b309:a409 with SMTP id b21-20020aca2215000000b003a1b309a409mr12935432oic.4.1690302148591; Tue, 25 Jul 2023 09:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690302148; cv=none; d=google.com; s=arc-20160816; b=mfyX45HGCB4TOAlYD96dTBMrMVxkHY0C7CDZE8nUM3ueyJLx/dLN+c6DIMcNflK7mR x2nNty1NrM8sWZ33RvFRqX9vPXy+CwpPk4E1z5CQ9c2DHWJhuKrOoEMNm89TNTGcwLvV nbntl8oS91cWPY1zXrJupfnpsKMinIt3a/f2I8xvGv5TVhNCFYfBE02o9YeJ1dMiP/SE WwLKE36/Jpxa5+aPwJQIRblt6csxOnRJEvHH6odLzZZiKEIGPLfSE0aOiI5d+wmfCFFr NI4Mel8DRdaVBdQeVA3UvrhKYq/5bChIkcLSuOY76pAp5+XWN1YCsVt51RisJHDQUBKE rMIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=DCrVdTZAI+0vQC3PoQE4vcBJ0YMLagHeZdYmArSL1lk=; fh=H4FMaqjENWZUM2QPmLta4JswoHNBblrA3bBMJ6B2u40=; b=rJvUrimAItHjqQJ3B7qaKgBKg1PZX1W/R7qofqaw7BDbA33cyQdfQd/xxxA1qixgie FJTvuGR+AH7XwX+GtMboeqcx2fXqBbsh+VpalkMX6gosQwjVVeH8VwuZ8hSyY6T+lG9M aqbiBSYMkDNOc1/jFxfakwjnIYcBUm0lpGvjS+0ErJGsIy/BA1bVxBwzhga7toZ5vjG+ 57MH51B3Xi5AxoyMmrpXpzgMLOfRGNJ0NCcAQQWmdgbaROa/kz+2xbKWZ5b7i1BnmT2R jpI5BgqSH8hmtCTScNW7atOEk3IlZ5ZKMVOhh/jAcoCWIpcNJHWaQSDgF6TLZKyg3JSE VVcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QKT72DRS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a17090a9a9100b002630f63c654si11934723pjp.125.2023.07.25.09.22.16; Tue, 25 Jul 2023 09:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QKT72DRS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232869AbjGYP7p (ORCPT + 99 others); Tue, 25 Jul 2023 11:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232709AbjGYP7k (ORCPT ); Tue, 25 Jul 2023 11:59:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D787E2102 for ; Tue, 25 Jul 2023 08:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690300730; 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=DCrVdTZAI+0vQC3PoQE4vcBJ0YMLagHeZdYmArSL1lk=; b=QKT72DRSwkLcbJB9yVCS7I1H7/WNm51KmmsAEd7xwoIDMGiuj5nL3LvXT4gkuJg8OgOSG1 ZhOBJDBt699aHtG9htIueFTQNa+1KS1vX29a9ISfr3XdDSEQ7d3+t/7kG+XUgl3CUjoT5K bqI5gwuvOK3S7KB3tq63sGsBExnTd/s= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-410-WI-G73yFMfKYvUZh17UjEQ-1; Tue, 25 Jul 2023 11:58:46 -0400 X-MC-Unique: WI-G73yFMfKYvUZh17UjEQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DD0281C16600; Tue, 25 Jul 2023 15:58:43 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.242]) by smtp.corp.redhat.com (Postfix) with ESMTP id D7BA0201EC58; Tue, 25 Jul 2023 15:58:34 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: To: Alexey Gladkov Cc: dhowells@redhat.com, James.Bottomley@HansenPartnership.com, acme@kernel.org, alexander.shishkin@linux.intel.com, axboe@kernel.dk, benh@kernel.crashing.org, borntraeger@de.ibm.com, bp@alien8.de, catalin.marinas@arm.com, christian@brauner.io, dalias@libc.org, davem@davemloft.net, deepa.kernel@gmail.com, deller@gmx.de, fenghua.yu@intel.com, fweimer@redhat.com, geert@linux-m68k.org, glebfm@altlinux.org, gor@linux.ibm.com, hare@suse.com, hpa@zytor.com, ink@jurassic.park.msu.ru, jhogan@kernel.org, kim.phillips@arm.com, ldv@altlinux.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux@armlinux.org.uk, linuxppc-dev@lists.ozlabs.org, luto@kernel.org, mattst88@gmail.com, mingo@redhat.com, monstr@monstr.eu, mpe@ellerman.id.au, namhyung@kernel.org, paulus@samba.org, peterz@infradead.org, ralf@linux-mips.org, sparclinux@vger.kernel.org, stefan@agner.ch, tglx@linutronix.de, tony.luck@intel.com, tycho@tycho.ws, will@kernel.org, x86@kernel.org, ysato@users.sourceforge.jp, LKML , Arnd Bergmann , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk Subject: Add fchmodat2() - or add a more general syscall? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <104970.1690300714.1@warthog.procyon.org.uk> Date: Tue, 25 Jul 2023 16:58:34 +0100 Message-ID: <104971.1690300714@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rather than adding a fchmodat2() syscall, should we add a "set_file_attrs()" syscall that takes a mask and allows you to set a bunch of stuff all in one go? Basically, an interface to notify_change() in the kernel that would allow several stats to be set atomically. This might be of particular interest to network filesystems. David