Re: [PATCH v2 17/31] ovl: add EXPORT_OP_STABLE_HANDLES flag to export operations

Amir Goldstein
2026-01-19T16:43:08Z

On Mon, Jan 19, 2026 at 5:29 PM Jeff Layton <jlayton@kernel.org> wrote:
>
> Add the EXPORT_OP_STABLE_HANDLES flag to overlayfs export operations to
> indicate that this filesystem can be exported via NFS.
>
> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>

> ---
> fs/overlayfs/export.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/overlayfs/export.c b/fs/overlayfs/export.c
> index 83f80fdb156749e65a4ea0ab708cbff338dacdad..18c6aee9dd23bb450dadbe8eef9360ea268241ff 100644
> --- a/fs/overlayfs/export.c
> +++ b/fs/overlayfs/export.c
> @@ -865,6 +865,7 @@ const struct export_operations ovl_export_operations = {
> .fh_to_parent = ovl_fh_to_parent,
> .get_name = ovl_get_name,
> .get_parent = ovl_get_parent,
> + .flags = EXPORT_OP_STABLE_HANDLES,
> };
>
> /* encode_fh() encodes non-decodable file handles with nfs_export=off */
>
> --
> 2.52.0
>