On Thu 30-11-23 18:56:19, Amir Goldstein wrote: > So far, fanotify returns -ENODEV or -EXDEV when trying to set a mark > on a filesystem with a "weak" fsid, namely, zero fsid (e.g. fuse), or > non-uniform fsid (e.g. btrfs non-root subvol). > > When group is watching inodes all from the same filesystem (or subvol), > allow adding inode marks with "weak" fsid, because there is no ambiguity > regarding which filesystem reports the event. > > The first mark added to a group determines if this group is single or > multi filesystem, depending on the fsid at the path of the added mark. > > If the first mark added has a "strong" fsid, marks with "weak" fsid > cannot be added and vice versa. > > If the first mark added has a "weak" fsid, following marks must have > the same "weak" fsid and the same sb as the first mark. > > Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx> Yep, this is good. Can you please repost the whole series so that b4 can easily pick it up from the list ;)? Thanks! Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR