From: Dominique Martinet <dominique.martinet@cea.fr>
To: <linux-fsdevel@vger.kernel.org>
Subject: open_by_handle_at on disconnected dentry
Date: Tue, 4 Oct 2016 09:30:16 +0200 [thread overview]
Message-ID: <20161004073016.GA31167@u-isr-cdi-08> (raw)
Hi,
I've been playing with open_by_handle_at and noticed that I can get
/proc/self/fd/X to contain just '/' by opening a handle in a directory
that's not in cache (either through /proc/sys/vm/drop_cache or reboot)
Looking a bit further it looks like the path.dentry is disconnected
(DCACHE_DISCONNECTED flag, and points to itself/d_name is /).
I see exportfs_decode_fh can call reconnect_path in this case for
directories, or non-directly-acceptable files - maybe open_by_handle_at
should make sure we're always connected, or have an open flag for it?
I'm not sure what other implications there are aside of the odd filename
for its own /proc/self/fd and fanotify.
Thanks,
--
Dominique Martinet
reply other threads:[~2016-10-04 8:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20161004073016.GA31167@u-isr-cdi-08 \
--to=dominique.martinet@cea.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox