Josef Sipek:
> rmdir a/b executes without any errors.

On my linux, it failed as I wrote.
Is there anyone else who can succeed rmdir?

Junjiro Okajima


> There are some problems around permission bits of a dir.
> For example, unionfs cannot remove the un-writable dir while unix/posix
> can. And if a dir doen't have exec bit (rare case), unionfs cannot
> handle it correctly.
> This patch will solve those problems.
> 
> Junjiro Okajima
> 
> 
> unionfs /dev/shm/u unionfs 
> rw,dirs=/dev/shm/rw=rw:/dev/shm/ro=ro,debug=0,delete=all,copyup=preserve 0 0
> $ cd /dev/shm/u
> $ mkdir a
> $ sudo mkdir a/b
> $ ls -al a
> total 3
> drwxr-xr-x   3 jro  jro  1024 Feb 10 17:02 .
> drwxrwxrwx  22 jro  jro  1024 Feb 10 17:02 ..
> drwxr-xr-x   2 root root 1024 Feb 10 17:02 b
> $ id
> uid=1000(jro) gid=1000(jro) groups=1000(jro)
> $ rmdir a/b
> rmdir: `a/b': Directory not empty
> 
> $ mkdir a/b
> $ chmod -x a/b
> $ ls -al a
> total 3
> drwxr-xr-x   3 jro jro 1024 Feb 10 17:21 .
> drwxrwxrwx  22 jro jro 1024 Feb 10 17:21 ..
> drw-r--r--   2 jro jro 1024 Feb 10 17:21 b
> $ find /usr -ls # forget dentry 'b'
> $ ls -al a
> ls: a/b: Permission denied
> total 2

> drwxr-xr-x   3 jro jro 1024 Feb 10 17:11 .
> drwxrwxrwx  22 jro jro 1024 Feb 10 17:11 ..
> $ rmdir a/b
> rmdir: `a/b': Permission denied
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to