Hello,

While I'm examining udba=notify option, I encountered a behavior that
I didn't expect.
I have two directories (/tmp/tmpfs0 and /tmp/tmpfs1) which are
branches of /tmp/aufs0 as well asl /tmp/aufs1... which means two
different /tmp/aufs0 and /tmp/aufs1 are sharing same branches.
However if I add a same named file to /tmp/tmpfs1 and then
/tmp/tmpfs0, only /tmp/aufs0 shows updated file from /tmp/tmpfs0 while
/tmp/aufs1 still shows file from /tmp/tmpfs1

It seems to me a bug.  Can you have a look or give me sort of hint
that I can tackle down this bug?
Please see attached simplified test script and test result below for detail.
I'm using aufs 2-standalone.tree-32-20100621 but the latest version
showed same result.

Thanks,
Joonwoo

---
#!/bin/sh -v
mkdir -p /tmp/tmpfs0 /tmp/tmpfs1 /tmp/aufs0 /tmp/aufs1
umount aufs0 aufs1 tmpfs0 tmpfs1
mount -t tmpfs tmpfs0 /tmp/tmpfs0
mount -t tmpfs tmpfs1 /tmp/tmpfs1
mount -t aufs aufs -o dirs=/tmp/tmpfs0:/tmp/tmpfs1,udba=notify /tmp/aufs0
mount -t aufs aufs -o dirs=/tmp/tmpfs0:/tmp/tmpfs1,udba=notify /tmp/aufs1
sleep 1
echo 'tmpfs1' > /tmp/tmpfs1/text
cat /tmp/aufs0/text
tmpfs1                    <----------- CORRECT
cat /tmp/aufs1/text
tmpfs1                    <----------- CORRECT
echo 'tmpfs0' > /tmp/tmpfs0/text
cat /tmp/aufs0/text
tmpfs0                    <----------- CORRECT
cat /tmp/aufs1/text
tmpfs1                    <----------- INCORRECT, SHOULDN'T BE "tmpfs0"?
#
----

Attachment: notify2.sh
Description: Bourne shell script

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev

Reply via email to