* open_by_handle_at on disconnected dentry
@ 2016-10-04 7:30 Dominique Martinet
0 siblings, 0 replies; only message in thread
From: Dominique Martinet @ 2016-10-04 7:30 UTC (permalink / raw)
To: linux-fsdevel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-04 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04 7:30 open_by_handle_at on disconnected dentry Dominique Martinet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).