From: Nikolaus Rath <Nikolaus@rath.org>
To: Miklos Szeredi via fuse-devel <fuse-devel@lists.sourceforge.net>
Cc: Linux FS Devel <linux-fsdevel@vger.kernel.org>,
miklos <mszeredi@redhat.com>, Miklos Szeredi <miklos@szeredi.hu>
Subject: Re: [fuse-devel] Semantics of fuse_notify_delete()
Date: Thu, 27 Jul 2023 12:37:26 +0100 [thread overview]
Message-ID: <87tttpk2kp.fsf@vostro.rath.org> (raw)
In-Reply-To: <CAJfpegs+FfWGCOxX1XERGHfYRZzCzcLZ99mnchfb8o9U0kTS-A@mail.gmail.com> (Miklos Szeredi via fuse-devel's message of "Thu, 27 Jul 2023 10:04:56 +0200")
On Jul 27 2023, Miklos Szeredi via fuse-devel <fuse-devel@lists.sourceforge.net> wrote:
> On Wed, 26 Jul 2023 at 20:09, Nikolaus Rath <Nikolaus@rath.org> wrote:
>>
>> Hello,
>>
>> It seems to me that fuse_notify_delete
>> (https://elixir.bootlin.com/linux/v6.1/source/fs/fuse/dev.c#L1512) fails
>> with ENOTEMPTY if there is a pending FORGET request for a directory
>> entry within. Is that correct?
>
> It's bug if it does that.
>
> The code related to NOTIFY_DELETE in fuse_reverse_inval_entry() seems
> historic. It's supposed to be careful about mountpoints and
> referenced dentries, but d_invalidate() should have already gotten all
> that out of the way and left an unhashed dentry without any submounts
> or children. The checks just seem redundant, but not harmful.
>
> If you are managing to trigger the ENOTEMPTY case, then something
> strange is going on, and we need to investigate.
I can trigger this reliable on kernel 6.1.0-10-amd64 (Debian stable)
with this sequence of operations:
$ mkdir test
$ echo foo > test/bar
$ Trigger removal of test/bar and then test within the filesystem (not
through unlink()/rmdir() but out-of-band)
What can I do to help with the investigation?
Best,
-Nikolaus
next prev parent reply other threads:[~2023-07-27 11:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 18:08 Semantics of fuse_notify_delete() Nikolaus Rath
2023-07-27 8:04 ` Miklos Szeredi
2023-07-27 11:37 ` Nikolaus Rath [this message]
2023-07-28 8:45 ` [fuse-devel] " Nikolaus Rath
2023-07-28 8:52 ` Miklos Szeredi
2023-07-31 14:12 ` Miklos Szeredi
2023-08-01 10:53 ` Nikolaus Rath
2023-08-01 12:53 ` Miklos Szeredi
2023-08-01 14:40 ` Nikolaus Rath
2023-08-01 14:48 ` Miklos Szeredi
2023-08-01 16:05 ` Nikolaus Rath
2023-08-01 17:39 ` Miklos Szeredi
2023-08-02 13:18 ` Miklos Szeredi
2023-08-02 14:43 ` Nikolaus Rath
2023-08-02 17:48 ` Miklos Szeredi
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=87tttpk2kp.fsf@vostro.rath.org \
--to=nikolaus@rath.org \
--cc=fuse-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=mszeredi@redhat.com \
/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.