lkml.org 
[lkml]   [2014]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Unionmount and overlayfs testsuite
    From
    On Thu, May 29, 2014 at 8:44 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote:
    > On Thu, May 29, 2014 at 8:22 PM, David Howells <dhowells@redhat.com> wrote:
    >> Sedat Dilek <sedat.dilek@gmail.com> 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 -


    \
     
     \ /
      Last update: 2014-05-29 21:21    [W:4.020 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site