> 2007/6/14, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> So your situation is,
>
> / = /rw + /ro
/ = /rw + /ro ... /ro
>
> $ ls /rw/tmp
> - no 'test' file
no, test file exist on /rw/tmp
>
> $ ls /ro/tmp
> - 'test' file exists, 0777, normal user/group
>
> $ rm /tmp/test
> - succeeds
> - whiteout for 'test' is created.
>
> $ touch /tmp/test
> - unexpected error, No such file or directory
>
>
> Will you check these things?
> - after rm, check the whiteout by 'ls -l /rw/tmp/.wh.test'
yes whiteout created
> - check the dir permission by 'ls -ld / /rw /ro /rw/tmp /ro/tmp'
yes all ok, all branches has 755 and all tmp has 777
> - find the systemcall which returned the error by 'strace touch
>   /tmp/test'
open("/tmp/test", O_WRONLY|O_NONBLOCK|O_CREAT|O_NOCTTY|O_LARGEFILE,
0666) = -1 EPERM (Operation not permitted)
utime("/tmp/test", NULL)                = -1 ENOENT (No such file or directory)
write(2, "touch: ", 7touch: )                  = 7
write(2, "setting times of `/tmp/test\'", 28setting times of `/tmp/test') = 28
write(2, ": No such file or directory", 27: No such file or directory) = 27
write(2, "\n", 1
)                       = 1
close(1)                                = 0
close(2)                                = 0
>
> If there is another user on your system and the branch filesystems (/rw
> and /ro in above example) are not hidden, someone else might change them
> directly (bypassing aufs). In this case, you should use 'udba=inotify'
> aufs mount option. Otherwise, aufs may behave differently as you expect.
No  I try this in correct way, without modifying branches directly

I try to repeat this situation in next way:
1) Add new branch  /my (rw)
2) Remount previous cur as RO
3) create /tmp/new and chown user:group them
4) Add new branch /my1 (rw)
5) Remount previous /my as RO
6) Delete file /tmp/new, whiteout created all ok, ls /tmp/new - No
such file or directory
7) touch /tmp/new (as user) - Error, but if I try to touch another
file in the same dir all ok. So as user I can do in this folder all
what I want, but can't create file which was previously deleted.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Reply via email to