Tobias Wilken:
> "ls -al /gluster-rw"
> drwxr-xr-x 2 root root 4096 2009-08-10 07:27 dirA
> drwxr-xr-x 2 aufstest aufstest 4096 2009-08-10 07:05 dirB
        :::
> If I do an "ls -al /your/aufs" I get:
> drwxr-xr-x 2 aufstest aufstest 4096 2009-08-10 07:13 dirA
> drwxr-xr-x 2 aufstest aufstest 4096 2009-08-10 07:14 dirB
> drwxr-xr-x 2 aufstest aufstest 4096 2009-08-10 07:40 dirC
> 
> So /your/aufs shows the owner of "/local-ro" and not the owner of the new
> folder on the "/gluster-rw"

Let me make sure.
- /local-ro/dirA exists and its owner is aufstest.
- /gluster-rw/dirA did not exist.
- /gluster-rw/dirA is created by aufs internal copyup, and its owner is
  incorrect.
Right?


> developmentImage:/# cat /proc/mounts
> rootfs / rootfs rw 0 0
> none /sys sysfs rw,nosuid,nodev,noexec 0 0
> none /proc proc rw,nosuid,nodev,noexec 0 0
> udev /dev tmpfs rw,size=10240k,mode=755 0 0
> /dev/sda1 / ext3 rw,errors=continue,data=ordered 0 0
> tmpfs /lib/init/rw tmpfs rw,nosuid,mode=755 0 0
> tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
> fusectl /sys/fs/fuse/connections fusectl rw 0 0
> /dev/sda2 /opt ext3 rw,errors=continue,data=ordered 0 0
> host-2 /gluster-rw fuse.glusterfs
> rw,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072 0 0
> none /your/aufs aufs
> rw,si=4391d037,xino=/gluster-rw/.aufs.xino,br:/gluster-rw=rw:/local-ro=ro 0
> 0

Does it mean /local-ro exists on /dev/sda1?


> developmentImage:/# cat /sys/module/aufs/version
> 20080714

Waoh, that is very old, more than a year ago.


> developmentImage:~# cat /sys/fs/aufs/config
> CONFIG_AUFS=m
> CONFIG_AUFS_BRANCH_MAX_127=y
> CONFIG_AUFS_EXPORT=y
> CONFIG_AUFS_RR_SQUASHFS=y
> CONFIG_AUFS_SPLICE_PATCH=y
> CONFIG_AUFS_STAT=y

This seems to be your first problem.
As long as you use FUSE as aufs branch fs, you should enable
CONFIG_AUFS_WORKAROUND_FUSE.
Also I'd suggest you to enable CONFIG_AUFS_HINOTIFY too, if you have a
plan to modify /local-ro or /gluster-rw directly (bypassing aufs).

I hope CONFIG_AUFS_WORKAROUND_FUSE help you.
But I am not sure it will solve the problem prefectly because I am
forgetting such old version...


J. R. Okajima

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

Reply via email to