Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4760576rwo; Tue, 25 Jul 2023 10:29:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEbd9MA/1+WSzt3Sc3dLrqLALqmNZDnkmNIeJ7snETdBvDm4ZS67QV+6OBluzuXFMtFS8qC X-Received: by 2002:a17:90b:e91:b0:268:10a3:ceaa with SMTP id fv17-20020a17090b0e9100b0026810a3ceaamr5860246pjb.21.1690306147235; Tue, 25 Jul 2023 10:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690306147; cv=none; d=google.com; s=arc-20160816; b=srz34Qk9/CLya7Uh9M5OzyGXP9yR3kcY2dhaYgcT2eVFii1z5DBOO+baBrlR+Qqwkm XQoOucCxE073gSWx3btwvXd8GQSD+Jd4vru5uRfE50OZVQYYiEiQjdWPgpJIAi1dqSiu e/H+xlbhr4Ud70uAvRYV7iv80tR8thXRT63V/5Z6ongF9TuntlrOJvxEnxEEZdXWwo3j n4U+46QkneRtzuEULRa2/6XL31JoD4YVjElp+JCyJNMuPE0A1dnONwSlfEUqy2Y8YK+m 8/XWatgjKM3X4Vhb8qoHZ0ZvYLoCt29ja1DOHyi5wP6kJ58s3OX08ZPQXFhcSAozBn8P mR8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=G/zZPwexsp4seUyrA2hhadzoNaw+twMBRSn/pl5a3MA=; fh=MhroZOHJSCainvWlQSXsUkGYmXbjZcatU/yhXxg00FQ=; b=obcCzhiSrFha9eHs2ZZKp1K/bV+ZgvvVRl6rYupMH7IxFOBMYpjrK5x+4/cszlauoW Oid9RCxgA5DiJUDJM0mIgfRQAqmf8SHmLpnYW5nNMPZErnUDoBa5sxWrxTeZ4ozRbUtz J99mt9xbuTxtQXFsfB++6WYxhetvcalTMGNRfCjIR7zcUaAbv36TEjAG7QkcTxQzQvXv TS7EmmtEZWtsHWJDFl+IbYslBAnqHH2TB0lAHwTl7nho+8rOiROlf43BGB5lq3mVFIFL lo+wfr2BXg64G/A6M28D0H4uXG9s73nlzyP/ce0a5cHUHNQ5xVVYJUfYjMjhXJK0Bple 04Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YV/xwEhK"; 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 rm10-20020a17090b3eca00b0025be6419478si12648888pjb.92.2023.07.25.10.28.54; Tue, 25 Jul 2023 10:29:07 -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="YV/xwEhK"; 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 S232072AbjGYQMN (ORCPT + 99 others); Tue, 25 Jul 2023 12:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjGYQMF (ORCPT ); Tue, 25 Jul 2023 12:12:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FAFC1BD5 for ; Tue, 25 Jul 2023 09:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690301440; 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=G/zZPwexsp4seUyrA2hhadzoNaw+twMBRSn/pl5a3MA=; b=YV/xwEhKroc3s2kIAX8hIbK9VfugSDMjV6bfaPnnBmJJYh+aDTGMIoecaKoiuogOF98ei5 8WFiTbXlrw7MIFOjXIF6I975KVRUHyHE6zZ4GCl2jTM5ucMTnLKHW9RhDtjeWPT8YvSzAl +GB5YKU46sJlS4DqYqN4DzTFFFYozHg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-643-m3013xXfOhOnk-HZgCSlEQ-1; Tue, 25 Jul 2023 12:10:36 -0400 X-MC-Unique: m3013xXfOhOnk-HZgCSlEQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 828B8104458F; Tue, 25 Jul 2023 16:10:34 +0000 (UTC) Received: from oldenburg3.str.redhat.com (unknown [10.39.194.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87CF610E5E; Tue, 25 Jul 2023 16:10:23 +0000 (UTC) From: Florian Weimer To: David Howells Cc: Alexey Gladkov , 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, 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: Re: Add fchmodat2() - or add a more general syscall? References: <104971.1690300714@warthog.procyon.org.uk> Date: Tue, 25 Jul 2023 18:10:22 +0200 In-Reply-To: <104971.1690300714@warthog.procyon.org.uk> (David Howells's message of "Tue, 25 Jul 2023 16:58:34 +0100") Message-ID: <87fs5c3rbl.fsf@oldenburg3.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 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 * David Howells: > 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. Do you mean atomically as in compare-and-swap (update only if old values match), or just a way to update multiple file attributes with a single system call? Thanks, Florian