Hello Tobias,

Tobias Wilken:
> With aufs I mount a read-only directory from the local harddisk and a
> writable directory from the glusterfs together.
> It works fine, so far. The only problem occurs if I change a file insides a
> directory of the read-only directory.
> 
> Normally it should create the directory structure for the changed file in
> the writable directory and keeps the uid and gid.
> 
> If I use glusterfs the directories are created with root as user and group,
> which leads to many "permission denied"'s.

Unfortunately I don't understand what your situation is.
How did you create the file? Bypasseing aufs? Or do you expect the
internal copyup in aufs?
If you are saying,
- /your/aufs = /gluster-rw + /local-ro
- /local-ro/dirA/fileA exists
- the owner of /local-ro/dirA is not root.
- /gluster-rw/dirA and /gluster-rw/dirA/fileA don't exist
- echo >> /your/aufs/dirA/fileA
- the owner of /your/aufs/dirA becomes root unexpectedly, that it the
  problem.

Then I'd ask you to test "mkdir /gluster-rw/dirB" and see its owner.
And give me these info.

(from the aufs README)
----------------------------------------------------------------------
When you have any problems or strange behaviour in aufs, please let me
know with:
- /proc/mounts (instead of the output of mount(8))
- /sys/module/aufs/*
- /sys/fs/aufs/* (if you have them)
- /debug/aufs/* (if you have them)
- linux kernel version
  if your kernel is not plain, for example modified by distributor,
  the url where i can download its source is necessary too.
- aufs version which was printed at loading the module or booting the
  system, instead of the date you downloaded.
- configuration (define/undefine CONFIG_AUFS_xxx)
- kernel configuration or /proc/config.gz (if you have it)
- behaviour which you think to be incorrect
- actual operation, reproducible one is better
- mailto: aufs-users at lists.sourceforge.net
----------------------------------------------------------------------


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