Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12]

From: David Howells
Date: Wed Oct 10 2018 - 07:56:35 EST


Alan Jenkins <alan.christopher.jenkins@xxxxxxxxx> wrote:

> I replied last time to wonder about the MNT_UMOUNT mnt_flag. So I've tested it
> now :-), on David's current tree (commit 5581f4935add).
>
> The modified do_move_mount() allows re-attaching something that was
> lazy-unmounted. But the lazy unmount sets MNT_UMOUNT. And this flag is not
> cleared when the mount is re-attached.

Sorry, yes. I'm not sure what the best way to deal with this is. Should it
just return -EPERM or -ESTALE if MNT_UMOUNT is set?

David