Re: [RFC PATCH 1/1] overlayfs: add ioctls that allows to get fhandle for layers dentries

2020-10-04 Thread Randy Dunlap
On 10/4/20 12:24 PM, Alexander Mikhalitsyn wrote: > +#define OVL_IOC_GETLWRFHNDLSNUM _IO('o', 1) > +// DISCUSS: what if MAX_HANDLE_SZ will change? > +#define OVL_IOC_GETLWRFHNDL _IOR('o', 2, struct > ovl_mnt_opt_fh) > +#define OVL_IOC_GETUPPRFHNDL

[RFC PATCH 1/1] overlayfs: add ioctls that allows to get fhandle for layers dentries

2020-10-04 Thread Alexander Mikhalitsyn
Add several ioctls to ovl_dir_operations that allows to get file handles for upperdir, workdir, lowerdir dentries. Special {s_dev; fhandle} format used. (Ideally should be {mnt_id; fhandle} but this impossible because overlayfs not keeps mounts refcnt for layers.) Added ioctls list: OVL_IOC_GETLWR