Re: [PATCH 4/8] fuse: signal that a fuse filesystem should exhibit local fs behaviors

Miklos Szeredi
2025-09-23T14:57:42Z

On Fri, 19 Sept 2025 at 19:50, Darrick J. Wong <djwong@kernel.org> wrote:

> /**
> * fuse_attr flags
> *
> * FUSE_ATTR_SUBMOUNT: Object is a submount root
> * FUSE_ATTR_DAX: Enable DAX for this file in per inode DAX mode
> * FUSE_ATTR_IOMAP: Use iomap for this inode
> * FUSE_ATTR_ATOMIC: Enable untorn writes
> * FUSE_ATTR_SYNC: File writes are synchronous
> * FUSE_ATTR_IMMUTABLE: File is immutable
> * FUSE_ATTR_APPEND: File is append-only
> */
>
> So we still have plenty of space.

No, I was thinking of an internal flag or flags. Exporting this to
the server will come at some point, but not now.

So for now something like

/** FUSE inode state bits */
enum {
...
/* Exclusive access to file, either because fs is local or have an
exclusive "lease" on distributed fs */
FUSE_I_EXCLUSIVE,
};

Thanks,
Miklos