On Sun, 2009-03-01 at 18:10 +0900, [email protected] wrote:
> William Grant:
> > localhost$ sudo mount -t aufs -o br:/tmp/src/aufstest=rw,udba=inotify
> > none dst
> > 
> > localhost$ ls -l /tmp/src/aufstest /tmp/dst
> > /tmp/dst:
> > total 4
> > -rw-r--r-- 1 william william 5 2009-03-01 19:58 blah
> > 
> > /tmp/src/aufstest:
> > total 4
> > -rw-r--r-- 1 william william 5 2009-03-01 19:59 blah
> 
> Why these timestamps are different?

I noticed that just after I sent this... I presume it was from the
strange caching behaviour that occurs even across remounts. I truncated
and recreated the file while it was unmounted.

> How did you create the file blah?

echo "blah" > /export/home/aufstest/blah

> Is the system clock on your server and client correct?

The clocks are within a few milliseconds of each other.


> > server$ echo "blah" >> /export/home/aufstest/blah
> 
> You did it on server?

I did.

> UDBA option is not for the actions on NFS server.

If that's not supported, can I instead turn off the caching entirely?

> Then we have to check the mount options for /tmp/src/aufstest too.
> How is your attribute cache option?

It does eventually (after over 20 seconds, in one trial) update with
'noac' set on the NFS mount. But I don't think attribute caching can be
the problem, as the stats on the NFS mount are fine - it's just the aufs
mount that is out of date.

> > localhost$ ls -l /tmp/src/aufstest /tmp/dst
> > /tmp/dst:
> > total 4
> > -rw-r--r-- 1 william william 5 2009-03-01 19:58 blah
> > 
> > /tmp/src/aufstest:
> > total 4
> > -rw-r--r-- 1 william william 10 2009-03-01 19:59 blah
> 
> If you execute "ls -l /tmp/src/aufstest /tmp/dst", is the second output
> still incorrect?

It's /tmp/dst (the first output) that is the aufs mount. That's the one
that is incorrect.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

Reply via email to