Re: Unionmount and overlayfs testsuite
From: Sedat Dilek
Date: Thu May 29 2014 - 14:44:40 EST
On Thu, May 29, 2014 at 8:22 PM, David Howells <dhowells@xxxxxxxxxx> wrote:
> Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote:
>
>> > TEST_OVERLAYFS=1 ./run.sh
>> >
>> > right?
>> >
>>
>> Yes (with my mount-patch applied).
>>
>> ( ...and... # umount /lower /upper /mnt )
>
> Can you put a couple of echo commands in settings.inc to show which side of
> the if-statement it goes and also put:
>
> echo TEST_OVERLAYFS is $TEST_OVERLAYFS
>
> in run.sh and mount_union.sh?
>
I retried with the new kernel-config...
# modprobe -v overlayfs
insmod /lib/modules/3.15.0-rc7-58.1-iniza-lockdep/kernel/fs/overlayfs/overlayfs.ko
...and echo-line changes...
# LC_ALL=C TEST_OVERLAYFS="1" ./run.sh
[ run.sh ] TEST_OVERLAYFS is 1
***
*** ./run.sh open-plain.test
***
[ mount_union.sh ] TEST_OVERLAYFS is 1
TEST100: Open O_RDONLY
- open_file -r /mnt/a/foo100 -R :xxx:yyy:zzz
- open_file -r /mnt/a/foo100 -R :xxx:yyy:zzz
TEST101: Open O_WRONLY
- open_file -w /mnt/a/foo101 -W q
/mnt/a/foo101: Test file not on upper filesystem (line 30)
# LC_ALL=C df -h | egrep 'mnt|upper|lower'
lower_layer 1.9G 240K 1.9G 1% /lower
upper_layer 1.9G 4.0K 1.9G 1% /upper
overlayfs 1.9G 4.0K 1.9G 1% /mnt
# find /mnt/ /upper/ /lower/ -name foo101
/mnt/a/foo101
/upper/upper/a/foo101
/lower/a/foo101
# LC_ALL=C ll /mnt/a/foo101 /upper/upper/a/foo101 /lower/a/foo101
-rw-r--r-- 1 bin bin 12 May 29 20:42 /lower/a/foo101
-rw-r--r-- 1 bin bin 12 May 29 20:42 /mnt/a/foo101
-rw-r--r-- 1 bin bin 12 May 29 20:42 /upper/upper/a/foo101
# stat -c foo101 /mnt/ /upper/ /lower/
foo101
foo101
foo101
- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/