<div dir="ltr">Sorry, I can't find your patch, may be it is due to watching from a mobile. Please resend it somewhere.<br>
</div><div dir="ltr"><br>
</div><div dir="ltr"><br>
</div><div dir="ltr"><br>
</div><div class="wps_signature">Best regards, Tikhomirov Pavel.</div><div class="wps_quotion">Andrew Vagin <avagin@virtuozzo.com> | От: 7 дек. 2017 г. 8:41 ДП | Сообщение:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p></p><p dir="ltr">Did you check my patch from a previous comment? Does it work now?
<br>
<br>
On Wed, Dec 06, 2017 at 04:51:21PM +0300, Pavel Tikhomirov wrote:
<br>
> changes in v2:
<br>
> make test check that file on overmounted tmpfs mount is dumped
<br>
>
<br>
> Signed-off-by: Pavel Tikhomirov <<a href="mailto:ptikhomirov@virtuozzo.com">ptikhomirov@virtuozzo.com</a>>
<br>
> ---
<br>
> test/zdtm/static/tempfs_overmounted.c | 22 ++++++++++++++++++++++
<br>
> test/zdtm/static/tempfs_overmounted.desc | 2 +-
<br>
> 2 files changed, 23 insertions(+), 1 deletion(-)
<br>
>
<br>
> diff --git a/test/zdtm/static/tempfs_overmounted.c b/test/zdtm/static/tempfs_overmounted.c
<br>
> index 56c3d2ed8..c9c1e2dae 100644
<br>
> --- a/test/zdtm/static/tempfs_overmounted.c
<br>
> +++ b/test/zdtm/static/tempfs_overmounted.c
<br>
> @@ -16,6 +16,9 @@ TEST_OPTION(dirname, string, "directory name", 1);
<br>
>
<br>
> int main(int argc, char **argv)
<br>
> {
<br>
> +        char testfile[PATH_MAX];
<br>
> +        int fd;
<br>
> +
<br>
>         test_init(argc, argv);
<br>
>
<br>
>         mkdir(dirname, 0700);
<br>
> @@ -23,6 +26,15 @@ int main(int argc, char **argv)
<br>
>                 fail("Can't mount tmpfs");
<br>
>                 return 1;
<br>
>         }
<br>
> +
<br>
> +        snprintf(testfile, PATH_MAX, "%s/testfile", dirname);
<br>
> +        fd = open(testfile, O_CREAT | O_EXCL, 0600);
<br>
> +        if (fd < 0) {
<br>
> +                fail("Can't create file");
<br>
> +                return 1;
<br>
> +        }
<br>
> +        close(fd);
<br>
> +
<br>
>         if (mount("none", dirname, "tmpfs", 0, "") < 0) {
<br>
>                 fail("Can't mount tmpfs");
<br>
>                 return 1;
<br>
> @@ -31,6 +43,16 @@ int main(int argc, char **argv)
<br>
>         test_daemon();
<br>
>         test_waitsig();
<br>
>
<br>
> +        if (umount(dirname)) {
<br>
> +                fail("Can't umount");
<br>
> +                return 1;
<br>
> +        }
<br>
> +
<br>
> +        if (access(testfile, F_OK) < 0) {
<br>
> +                fail("Can't access testfile");
<br>
> +                return 1;
<br>
> +        }
<br>
> +
<br>
>         pass();
<br>
>         return 0;
<br>
> }
<br>
> diff --git a/test/zdtm/static/tempfs_overmounted.desc b/test/zdtm/static/tempfs_overmounted.desc
<br>
> index 0d8b7f2b4..7657ba45c 100644
<br>
> --- a/test/zdtm/static/tempfs_overmounted.desc
<br>
> +++ b/test/zdtm/static/tempfs_overmounted.desc
<br>
> @@ -1 +1 @@
<br>
> -{'flavor': 'ns uns', 'flags': 'suid crfail'}
<br>
> +{'flavor': 'ns uns', 'flags': 'suid'}
<br>
> --
<br>
> 2.13.6
<br>
>
<br>
</p>
</blockquote></div>