Re: Add fchmodat2() - or add a more general syscall?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Florian Weimer <fweimer@xxxxxxxxxx>
- Subject: Re: Add fchmodat2() - or add a more general syscall?
- From: David Howells <dhowells@xxxxxxxxxx>
- Date: Tue, 25 Jul 2023 19:39:51 +0100
- Cc: dhowells@xxxxxxxxxx, Alexey Gladkov <legion@xxxxxxxxxx>, James.Bottomley@xxxxxxxxxxxxxxxxxxxxx, acme@xxxxxxxxxx, alexander.shishkin@xxxxxxxxxxxxxxx, axboe@xxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, borntraeger@xxxxxxxxxx, bp@xxxxxxxxx, catalin.marinas@xxxxxxx, christian@xxxxxxxxxx, dalias@xxxxxxxx, davem@xxxxxxxxxxxxx, deepa.kernel@xxxxxxxxx, deller@xxxxxx, fenghua.yu@xxxxxxxxx, geert@xxxxxxxxxxxxxx, glebfm@xxxxxxxxxxxx, gor@xxxxxxxxxxxxx, hare@xxxxxxxx, hpa@xxxxxxxxx, ink@xxxxxxxxxxxxxxxxxxxx, jhogan@xxxxxxxxxx, kim.phillips@xxxxxxx, ldv@xxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, luto@xxxxxxxxxx, mattst88@xxxxxxxxx, mingo@xxxxxxxxxx, monstr@xxxxxxxxx, mpe@xxxxxxxxxxxxxx, namhyung@xxxxxxxxxx, paulus@xxxxxxxxx, peterz@xxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, stefan@xxxxxxxx, tglx@xxxxxxxxxxxxx, tony.luck@xxxxxxxxx, tycho@xxxxxxxx, will@xxxxxxxxxx, x86@xxxxxxxxxx, ysato@xxxxxxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, linux-api@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, viro@xxxxxxxxxxxxxxxxxx
- In-reply-to: <87fs5c3rbl.fsf@oldenburg3.str.redhat.com>
- 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
- References: <87fs5c3rbl.fsf@oldenburg3.str.redhat.com> <cover.1689092120.git.legion@kernel.org> <cover.1689074739.git.legion@kernel.org> <104971.1690300714@warthog.procyon.org.uk>
Florian Weimer <fweimer@xxxxxxxxxx> wrote:
> > 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?
I was thinking more in terms of the latter. AFAIK, there aren't any network
filesystems support a CAS interface on file attributes like that. To be able
to do a CAS operation, we'd need to pass in the old values as well as the new.
Another thing we could look at is doing "create_and_set_attrs()", possibly
allowing it to take a list of xattrs also.
David
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]