From: Jan Kara <jack@suse.cz>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Jan Kara <jack@suse.cz>, Christian Brauner <brauner@kernel.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 1/2] fanotify: store fsid in mark instead of in connector
Date: Thu, 30 Nov 2023 16:50:07 +0100 [thread overview]
Message-ID: <20231130155007.q3rwbwugeepowh55@quack3> (raw)
In-Reply-To: <CAOQ4uxhOc0JBQ6JcHfHxOfi57OzHWdK=i-onP8++pX2PuAdw3Q@mail.gmail.com>
On Thu 30-11-23 17:29:02, Amir Goldstein wrote:
> On Thu, Nov 30, 2023 at 4:25 PM Jan Kara <jack@suse.cz> wrote:
> > > @@ -530,6 +528,7 @@ struct fsnotify_mark {
> > > #define FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY 0x0100
> > > #define FSNOTIFY_MARK_FLAG_NO_IREF 0x0200
> > > #define FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS 0x0400
> > > +#define FSNOTIFY_MARK_FLAG_HAS_FSID 0x0800
> > > unsigned int flags; /* flags [mark->lock] */
> > > };
> >
> > So this flag is in fact private to fanotify notification framework. Either
> > we could just drop this flag and use
> >
> > FANOTIFY_MARK(mark)->fsid[0] != 0 || FANOTIFY_MARK(mark)->fsid[1] != 0
>
> Cannot.
> Zero fsid is now a valid fsid in an inode mark (e.g. fuse).
> The next patch also adds the flag FSNOTIFY_MARK_FLAG_WEAK_FSID
Yeah, I've realized that once I've digested the second patch.
> > instead or we could at least add a comment that this flags is in fact
> > private to fanotify?
>
> There is already a comment, because all the flags above are fanotify flags:
>
> /* fanotify mark flags */
> #define FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY 0x0100
> #define FSNOTIFY_MARK_FLAG_NO_IREF 0x0200
> #define FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS 0x0400
Right, I should have checked more that the diff context ;) Sorry for the
noise.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
next prev parent reply other threads:[~2023-11-30 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-18 18:30 [PATCH 0/2] Support fanotify FAN_REPORT_FID on all filesystems Amir Goldstein
2023-11-18 18:30 ` [PATCH 1/2] fanotify: store fsid in mark instead of in connector Amir Goldstein
2023-11-30 14:25 ` Jan Kara
2023-11-30 15:29 ` Amir Goldstein
2023-11-30 15:50 ` Jan Kara [this message]
2023-11-18 18:30 ` [PATCH 2/2] fanotify: allow "weak" fsid when watching a single filesystem Amir Goldstein
2023-11-20 7:42 ` Amir Goldstein
2023-11-20 15:48 ` Christian Brauner
2023-11-20 16:20 ` Amir Goldstein
2023-11-21 13:33 ` Amir Goldstein
2023-11-30 12:42 ` Amir Goldstein
2023-11-30 15:47 ` Jan Kara
2023-11-30 16:28 ` Amir Goldstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231130155007.q3rwbwugeepowh55@quack3 \
--to=jack@suse.cz \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.