From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932507AbaE2Sxc (ORCPT ); Thu, 29 May 2014 14:53:32 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:32938 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbaE2Sxb (ORCPT ); Thu, 29 May 2014 14:53:31 -0400 MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: References: <1400838223-30844-1-git-send-email-miklos@szeredi.hu> <28592.1401382081@warthog.procyon.org.uk> <29026.1401383705@warthog.procyon.org.uk> <29191.1401384252@warthog.procyon.org.uk> <29410.1401385296@warthog.procyon.org.uk> <31766.1401387746@warthog.procyon.org.uk> Date: Thu, 29 May 2014 20:53:29 +0200 Message-ID: Subject: Re: Unionmount and overlayfs testsuite From: Sedat Dilek To: David Howells Cc: Miklos Szeredi , Al Viro , Linus Torvalds , linux-fsdevel , LKML , Christoph Hellwig , Andrew Morton , apw@canonical.com, Felix Fietkau , neilb@suse.de, jordipujolp@gmail.com, ezk@fsl.cs.sunysb.edu, "J. R. Okajima" , mszeredi@suse.cz Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 29, 2014 at 8:44 PM, Sedat Dilek wrote: > On Thu, May 29, 2014 at 8:22 PM, David Howells wrote: >> Sedat Dilek 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 > Hmm, why is the generated binary callled "open-file" and in the scripts I see "open_file"? I created a symlink in /usr/local/bin/, but that's not fixing it. - Sedat -