• Pavel Tikhomirov's avatar
    zdtm: add a test for non-uniform shares · 382756a4
    Pavel Tikhomirov authored
    Create a tree of shared mounts where shared mounts have different sets
    of children (while having the same root):
    
    First share1 is mounted shared tmpfs and second share1/child1 is mounted
    inside, third share1 is bind-mounted to share2 (now share1 and share2
    have the same shared id, but share2 has no child), fourth share1/child2
    is bind-mounted from share1, and also propagated to share2/child2 (now
    all except share1/child1 have the same shared id), fifth share1/child3
    is mounted and propagates inside the share.
    
    Finally we have four mounts shared between each other with different
    sets of children mounts, and even more two of them are children of
    another two:
    
    495 494 0:62 / /zdtm/static/non_uniform_share_propagation.test/share1 rw,relatime shared:235 - tmpfs share rw
    496 495 0:63 / /zdtm/static/non_uniform_share_propagation.test/share1/child1 rw,relatime shared:236 - tmpfs child1 rw
    497 494 0:62 / /zdtm/static/non_uniform_share_propagation.test/share2 rw,relatime shared:235 - tmpfs share rw
    498 495 0:62 / /zdtm/static/non_uniform_share_propagation.test/share1/child2 rw,relatime shared:235 - tmpfs share rw
    499 497 0:62 / /zdtm/static/non_uniform_share_propagation.test/share2/child2 rw,relatime shared:235 - tmpfs share rw
    500 495 0:64 / /zdtm/static/non_uniform_share_propagation.test/share1/child3 rw,relatime shared:237 - tmpfs child3 rw
    503 497 0:64 / /zdtm/static/non_uniform_share_propagation.test/share2/child3 rw,relatime shared:237 - tmpfs child3 rw
    502 499 0:64 / /zdtm/static/non_uniform_share_propagation.test/share2/child2/child3 rw,relatime shared:237 - tmpfs child3 rw
    501 498 0:64 / /zdtm/static/non_uniform_share_propagation.test/share1/child2/child3 rw,relatime shared:237 - tmpfs child3 rw
    Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
    382756a4
non_uniform_share_propagation.desc 38 Bytes