lkml.org 
[lkml]   [2014]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: Unionmount and overlayfs testsuite
From
On Thu, May 29, 2014 at 6:48 PM, David Howells <dhowells@redhat.com> wrote:
>
> http://git.infradead.org/users/dhowells/unionmount-testsuite.git
>
> Check it out and read the README file as to how to drive it. Sorry, it's a
> bit crude. I may rewrite it in python or perl at some point.
>
> Make sure you turn on CONFIG_LOCKDEP before running it - you don't want to
> miss any locking conflicts!
>
> Further tests would be appreciated. There are no rename tests, for instance.
>


I am testing this with current OverlayFS (here: as module).

# grep LOCKDEP /boot/config-3.15.0-rc7-58.1-iniza-small
CONFIG_LOCKDEP_SUPPORT=y

( My full kernel-config is attached. )

Attached is one patch to fix a hardcoded path to mount binary.

I cannot run the testsuite successfully...

# LC_ALL=C TEST_OVERLAYFS=1 ./run.sh
***
*** ./run.sh open-plain.test
***
TEST100: Open O_RDONLY
- open_file -r /mnt/a/foo100 -R :xxx:yyy:zzz
./tool_box.inc: line 144: /usr/local/bin/open-file: No such file or directory

[ ./tool_box.inc ]
...
echo " - open_file" "$@" $add
if $openfile "$@" $add <--- Line #144
then
:
else
exit $?
fi
check_not_tainted
}

# LC_ALL=C ll /mnt/a/foo100
-rw-r--r-- 1 bin bin 12 May 29 19:06 /mnt/a/foo100

# LC_ALL=C df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 17G 13G 3.5G 79% /
udev 1.9G 12K 1.9G 1% /dev
tmpfs 386M 892K 385M 1% /run
/dev/sda2 444G 113G 332G 26% /host
/dev/loop0 17G 13G 3.5G 79% /
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 180K 1.9G 1% /run/shm
lower_layer 1.9G 240K 1.9G 1% /lower
upper_layer 1.9G 0 1.9G 0% /upper
overlayfs 1.9G 0 1.9G 0% /mnt

Not sure what's wrong.

- Sedat -
From d3960c0a6282174c94753cc4521052c93c29fee3 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Thu, 29 May 2014 19:03:13 +0200
Subject: [PATCH] mount_union.sh: Remove hardcoded path to mount binary

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
---
mount_union.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mount_union.sh b/mount_union.sh
index a1ee849..88ef530 100644
--- a/mount_union.sh
+++ b/mount_union.sh
@@ -4,7 +4,7 @@

if [ "$TEST_OVERLAYFS" != 1 ]
then
- /root/util-linux-union/mount/mount -i -t tmpfs upper_layer $union_mntroot -o union || exit $?
+ mount -i -t tmpfs upper_layer $union_mntroot -o union || exit $?
sync || exit $?

upper_fs=`stat -c %D $testdir`
--
2.0.0
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2014-05-29 19:41    [W:0.826 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site