On Sun, Mar 7, 2010 at 2:25 PM,  <[email protected]> wrote:
>
> Joonwoo Park:
>> > - regardless the patch, mount aufs with udba=none
>> > - create a file on ubifs directly (bypassing aufs)
>> > - you can see it in aufs via ls(1) and stat(1)
>> > - but you cannot cat(1) it
>        :::
>> More clearly cat(1) it through ubifs works but cat(1) it through aufs
>> doesn't work.
>> The others are all correct.
>
> I tested by wc(1) instead of cat, and succeeded.
> Here is my test script. What is the difference?
>
> sudo mount -o remount,udba=none .

This was the difference.  Interesting.
I've mounted aufs with udba option so I didn't need to remount.
However if I remount after mount, opening file operation works.

# mount | egrep 'aufs|ubifs'
ubi0:commonrw on /realroot/rw type ubifs (rw,relatime)
none on /mnt type aufs (rw,relatime,si=64e40203,udba=none)
# ls -al /mnt/file
-rw-r--r--    0 root     root         10240 Jan  4 19:02 /mnt/file
# wc -l /mnt/file
wc: /mnt/file: No such file or directory
# mount -o remount,udba=none /mnt
# wc -l /mnt/file
        0 /mnt/file

Joonwoo.

> mkdir ubifs
> stat -f . $rw
> for i in 511 512 513
> do
>        yes | /tmp/mydd bs=$i count=1 of=$rw/ubifs/b$i
>        sleep 1
>        stat $rw/ubifs/b$i > $tmp
>        stat ubifs/b$i | diff -u $tmp - && false
>        wc -l ubifs/b$i
> done
>
>
> J. R. Okajima
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Reply via email to