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

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

From: Miklos Szeredi <miklos@szeredi.hu>
Date: 2026-07-08 14:09:08
Also in: linux-fsdevel, linux-unionfs

On Wed, 8 Jul 2026 at 14:27, Giuseppe Scrivano [off-list ref] wrote:
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
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.
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?

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