<div dir="ltr">Sorry, I can&#39;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 &lt;avagin@virtuozzo.com&gt; | От: 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>
&gt; changes in v2: <br>
&gt; make test check that file on overmounted tmpfs mount is dumped <br>
&gt;  <br>
&gt; Signed-off-by: Pavel Tikhomirov &lt;<a href="mailto:ptikhomirov@virtuozzo.com">ptikhomirov@virtuozzo.com</a>&gt; <br>
&gt; --- <br>
&gt;  test/zdtm/static/tempfs_overmounted.c    | 22 ++++++++++++++++++++++ <br>
&gt;  test/zdtm/static/tempfs_overmounted.desc |  2 +- <br>
&gt;  2 files changed, 23 insertions(+), 1 deletion(-) <br>
&gt;  <br>
&gt; diff --git a/test/zdtm/static/tempfs_overmounted.c b/test/zdtm/static/tempfs_overmounted.c <br>
&gt; index 56c3d2ed8..c9c1e2dae 100644 <br>
&gt; --- a/test/zdtm/static/tempfs_overmounted.c <br>
&gt; +++ b/test/zdtm/static/tempfs_overmounted.c <br>
&gt; @@ -16,6 +16,9 @@ TEST_OPTION(dirname, string, &quot;directory name&quot;, 1); <br>
&gt;   <br>
&gt;  int main(int argc, char **argv) <br>
&gt;  { <br>
&gt; +        char testfile[PATH_MAX]; <br>
&gt; +        int fd; <br>
&gt; + <br>
&gt;          test_init(argc, argv); <br>
&gt;   <br>
&gt;          mkdir(dirname, 0700); <br>
&gt; @@ -23,6 +26,15 @@ int main(int argc, char **argv) <br>
&gt;                  fail(&quot;Can&#39;t mount tmpfs&quot;); <br>
&gt;                  return 1; <br>
&gt;          } <br>
&gt; + <br>
&gt; +        snprintf(testfile, PATH_MAX, &quot;%s/testfile&quot;, dirname); <br>
&gt; +        fd = open(testfile, O_CREAT | O_EXCL, 0600); <br>
&gt; +        if (fd &lt; 0) { <br>
&gt; +                fail(&quot;Can&#39;t create file&quot;); <br>
&gt; +                return 1; <br>
&gt; +        } <br>
&gt; +        close(fd); <br>
&gt; + <br>
&gt;          if (mount(&quot;none&quot;, dirname, &quot;tmpfs&quot;, 0, &quot;&quot;) &lt; 0) { <br>
&gt;                  fail(&quot;Can&#39;t mount tmpfs&quot;); <br>
&gt;                  return 1; <br>
&gt; @@ -31,6 +43,16 @@ int main(int argc, char **argv) <br>
&gt;          test_daemon(); <br>
&gt;          test_waitsig(); <br>
&gt;   <br>
&gt; +        if (umount(dirname)) { <br>
&gt; +                fail(&quot;Can&#39;t umount&quot;); <br>
&gt; +                return 1; <br>
&gt; +        } <br>
&gt; + <br>
&gt; +        if (access(testfile, F_OK) &lt; 0) { <br>
&gt; +                fail(&quot;Can&#39;t access testfile&quot;); <br>
&gt; +                return 1; <br>
&gt; +        } <br>
&gt; + <br>
&gt;          pass(); <br>
&gt;          return 0; <br>
&gt;  } <br>
&gt; diff --git a/test/zdtm/static/tempfs_overmounted.desc b/test/zdtm/static/tempfs_overmounted.desc <br>
&gt; index 0d8b7f2b4..7657ba45c 100644 <br>
&gt; --- a/test/zdtm/static/tempfs_overmounted.desc <br>
&gt; +++ b/test/zdtm/static/tempfs_overmounted.desc <br>
&gt; @@ -1 +1 @@ <br>
&gt; -{&#39;flavor&#39;: &#39;ns uns&#39;, &#39;flags&#39;: &#39;suid crfail&#39;} <br>
&gt; +{&#39;flavor&#39;: &#39;ns uns&#39;, &#39;flags&#39;: &#39;suid&#39;} <br>
&gt; --  <br>
&gt; 2.13.6 <br>
&gt;  <br>
</p>
</blockquote></div>