Thread (20 messages) 20 messages, 4 authors, 1d ago

Re: [PATCH] ovl: add ioctls to retrieve layer file descriptors

From: Giuseppe Scrivano <hidden>
Date: 2026-07-08 14:32:33
Also in: linux-fsdevel, linux-unionfs

Miklos Szeredi [off-list ref] writes:
On Wed, 8 Jul 2026 at 14:27, Giuseppe Scrivano [off-list ref] wrote:
quoted
is there any existing user of such a mechanism?  I don't see any mount
specific info under /proc or /sys.
Not yet, but I think it would be good to have one.  It's definitely a
bigger bite than adding an ioctl(), though.
quoted
quoted
quoted
OVL_IOC_GET_LAYERS_INFO: copy a struct ovl_layers_info to userspace
                        with numlower, numlowerdata, and has_upper.
Isn't this info obtainable via statmount(2) already?  If not, it
should be there, instead of a specialized ioctl.
quoted
no that is not exposed by statmount
I mean, you should be able to get that info by counting the lowerdir+,
datadir+ and upperdir options, no?
Amir suggested to add that functionality when I've asked for some
feedback before sending the patch here.  I am fine to drop it if this is
the consensus although I see its utility from user space.

Regards,
Giuseppe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help