Hi,

On Mon, Mar 1, 2010 at 9:45 PM,  <sf...@users.sourceforge.net> wrote:
>
> Joonwoo Park:
>> So about this change can you suggest me any test cases?
>> Until now I'm running bonnie++ and an application to test mmap functionality.
>
> The main purpose of the tests will be
> - stat(2) familly in aufs should return the same value to the one in
>  ubifs.
> - aufs should not create the XINO files on ubifs.
>
> For the first case,
> - create several types of files on ubifs (regular file, dir, char dev,
>  block dev, fifo, symlink, socket).
> - issue stat(2), fstat(2), lstat(2) to them on ubifs.
> - repeat the same procedure on aufs which has ubifs as the branch, and
>  of course the branch should contain these files.
> - compare the results.

Thanks for your detail explanation.
I briefly ran that test case and it worked fine.
However unlikely I excepted that it shouldn't work without patch, even
without patch I could get correct result.
Is it possible to work without patch even though i_blockes is not
being preserved?

Thanks,
Joonwoo


p.s. here is my test scripts to run this test with nandsim.  I'm
running linux-2.6.30 with aufs 2-standalone.tree-30-20090803
please note as first branch of aufs I'm using *read-only* ubifs
partition but I think it shouldn't be matter.

mkubifs.sh
--
#!/bin/sh
ubidetach -m 0 /dev/ubi_ctrl 2> /dev/null
modprobe ubifs
modprobe nandsim first_id_byte=0x20 second_id_byte=0xa2
third_id_byte=0x00 fourth_id_byte=0x15 # 64MiB, 2048 bytes page;
ubiformat /dev/mtd0 -s 512
ubiattach /dev/ubi_ctrl -m 0
ubimkvol /dev/ubi0 -s 30000KiB -N slot1
ubimkvol /dev/ubi0 -m -N commonrw
--

mountubifs.sh
--
#!/bin/sh
umount /mnt /realroot/rw /realroot/ro 2> /dev/null
mkdir -p /realroot/ro /realroot/rw /mnt
mount -t ubifs -o ro ubi0:slot1 /realroot/ro
mount -t ubifs -o rw ubi0:commonrw /realroot/rw
mount -t aufs -o dirs=/realroot/ro=ro:/realroot/rw=rw,udba=inotify none /mnt
--

runtest.sh
--
mkdir -p /realroot/rw/directory
touch /realroot/rw/file
mknod c 4 64 /realroot/rw/ttyS0
mkfifo /realroot/rw/fifo
ln -sf /realroot/rw/file /realroot/rw/symlink
while [ 1 ]; do
touch -m -a /realroot/rw/*
stat /realroot/rw/* | egrep 'Access|Modify|Change' | md5sum
stat /mnt/* | egrep 'Access|Modify|Change' | md5sum
sleep 1;
done
--

------------------------------------------------------------------------------
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