Re: [PATCH] generic: test mount move semantics

Eryu Guan
2017-09-22T07:38:49Z

On Thu, Sep 21, 2017 at 04:24:23PM +0800, Zorro Lang wrote:
> This's a functional test case for mount --move operation, it verifies
> below semantics:
>
> ---------------------------------------------------------------------------
> | MOVE MOUNT OPERATION |
> |**************************************************************************
> |source(A)->| shared | private | slave | unbindable |
> | dest(B) | | | | |
> | | | | | | |
> | v | | | | |
> |**************************************************************************
> | shared | shared | shared | shared & slave | invalid |
> | | | | | |
> |non-shared| shared | private | slave | unbindable |
> ***************************************************************************
> NOTE: moving a mount residing under a shared mount is invalid.
>
> This case uses fsstress to produce a little random load, to make
> sure basic operations won't break the the moved mountpoints.
>
> Signed-off-by: Zorro Lang <zlang@redhat.com>

Thanks for the test! As what we discussed just now, the --move semantics
test is hard to follow, please add more comments inline to describe your
test steps and purpose.

Thanks,
Eryu