From: Chandan Rajendra <chandan@linux.vnet.ibm.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: overlayfs <linux-unionfs@vger.kernel.org>,
Miklos Szeredi <miklos@szeredi.hu>
Subject: Re: [PATCH] check_layer: Add tests for constant st_dev
Date: Thu, 13 Jul 2017 19:47:52 +0530 [thread overview]
Message-ID: <10642288.FqVSjOuREu@localhost.localdomain> (raw)
In-Reply-To: <CAOQ4uxicgyZRKxBVv+KTU8jQ0g7kSS7TWcjpNj8v5Za_gsP9iA@mail.gmail.com>
On Saturday, July 8, 2017 1:42:41 PM IST Amir Goldstein wrote:
> OK, my pseudo patch was mostly correct, but full of brainoes,
> push a tested patch to
> https://github.com/amir73il/unionmount-testsuite/commits/overlayfs-devel
>
> Please review and verify.
>
Hi Amir,
'./run --ov' on 'next' kernel (i.e. the one containing code which returns
pseudo st_devs for files on lowerdir) fails as shown below,
$ ./run --ov
***
*** ./run --ov --ts=0 open-plain
***
TEST open-plain.py:10: Open O_RDONLY
/mnt/a/foo100: File not on lower/upper layer
The corresponding code from check_layer() is,
elif dev != self.upper_fs() and dev != self.lower_fs():
raise TestError(name + ": File not on lower/upper layer")
This happens due to open-plain.py's subtest_1() opening a file on lowerdir in
read-only mode (i.e. copy-up does not occur). Later, stat(2) invocation from
check_layer() would end up returning the pseudo st_dev corresponding to
lowerdir.
'./run --ov --samefs --verify' on 4.12 kernel fails as shown below,
$ ./run --ov --samefs --verify
***
*** ./run --ov --ts=0 hard-link
***
TEST hard-link.py:10: Hard link file
./run --link /mnt/a/foo100 /mnt/a/no_foo100
/mnt/a/no_foo100: inode number wrong (got 39001, want 37581)
The failure happens because the dentry representing the new hard link wouldn't
have __OVL_PATH_ORIGIN set.
--
chandan
next prev parent reply other threads:[~2017-07-13 14:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 17:00 [PATCH] check_layer: Add tests for constant st_dev Chandan Rajendra
2017-07-04 18:03 ` Amir Goldstein
2017-07-07 5:36 ` Chandan Rajendra
2017-07-07 20:35 ` Amir Goldstein
2017-07-07 21:09 ` Amir Goldstein
2017-07-08 8:12 ` Amir Goldstein
2017-07-13 14:17 ` Chandan Rajendra [this message]
2017-07-13 14:59 ` Amir Goldstein
2017-07-13 15:10 ` Amir Goldstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10642288.FqVSjOuREu@localhost.localdomain \
--to=chandan@linux.vnet.ibm.com \
--cc=amir73il@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox