[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJfpegsinKngjHmZPxXvGULusEw359FhBkVh4A9O_+pqccjUzw@mail.gmail.com>
Date: Thu, 22 Feb 2024 14:10:40 +0100
From: Miklos Szeredi <miklos@...redi.hu>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: Jan Kara <jack@...e.cz>, Josef Bacik <josef@...icpanda.com>, linux-kernel@...r.kernel.org,
linux-bcachefs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
lsf-pc@...ts.linux-foundation.org, linux-btrfs@...r.kernel.org
Subject: Re: [Lsf-pc] [LSF TOPIC] statx extensions for subvol/snapshot
filesystems & more
On Thu, 22 Feb 2024 at 12:55, Kent Overstreet <kent.overstreet@...ux.dev> wrote:
>
> On Thu, Feb 22, 2024 at 12:44:17PM +0100, Jan Kara wrote:
> > On Thu 22-02-24 06:27:14, Kent Overstreet wrote:
> > > My intent is to make a real effort towards getting better interfaces
> > > going, prod those maintainers, _then_ look at adding those hacks (that
> > > will necessarily be short term solutions since 64 bits is already
> > > looking cramped).
> >
> > OK, fine by me :) So one thing is still not quite clear to me - how do you
> > expect the INO_NOT_UNIQUE flag to be used by these apps? Do you expect them
> > to use st_dev + st_ino by default and fall back to fsid + fhandle only when
> > INO_NOT_UNIQUE is set?
>
> Shouldn't matter. If they care about performance and they're in some
> strange situation where the syscal overhead matters,
If it's expensive, then just make the overhead smaller (by adding fh
and uuid to statx(2), for example).
Using st_ino is also racy in some filesystems, due to the fact that
the ino can be reused. If userspace is converted, it should be
converted properly, there's just no excuse to add conditional code
like that, which makes things more complex and less reliable.
Thanks,
Miklos
Powered by blists - more mailing lists