[Unionfs] Reuse of deleted file names by another user

Jens Hoelldampf jens at hoelldampf.net
Mon Oct 22 17:18:45 EDT 2007


Erez Zadok wrote:
> In message <47151670.2090407 at hoelldampf.net>, Jens Hoelldampf writes:
>> Hi,
>> 
>> when I delete a file on a unionfs-2.1.6 branch, it is not possible to
>> create the file with another user afterwards:
>> 
>> fagus ~ # touch /var/tmp/a
>> fagus ~ # rm /var/tmp/a
>> fagus ~ # su - jhl
>> jhl at fagus ~ $ touch /var/tmp/a
>> touch: setting times of `/var/tmp/a': No such file or directory
>> jhl at fagus ~ $ ls -la /nfsro/unionfs_rw/var/tmp/
>> total 0
>> drwxrwxrwt  2 root root  60 2007-10-16 21:47 .
>> drwxr-xr-x 10 root root 200 2007-10-16 21:42 ..
>> -rwxr-xr-x  1 root root   0 2007-10-16 21:47 .wh.a
>> jhl at fagus ~ $
>> 
>> Regards,
>>  Jens
> 
> Jens, I wasn't able to reproduce your setup with 2.6.23.  Can you send me
> more info: what kernel you're running, what's the branch configuration
> (types etc.), any special lower-branch mount options you're using, etc.  If
> you're using NFS, what version, what export options, etc.

Hi,

sorry for the late reply. I also tested 2.1.7 - same problem.
The details:

* vanilla kernel 2.6.23.1, unionfs 2.1.7

* relevant mounts:
> rootfs / rootfs rw 0 0
> 129.187.147.253:/ptg/rootfs/gentoo_x86_2007a_jhl / nfs ro,vers=3,rsize=4096,wsize=4096,hard,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=129.187.147.253 0 0
> tmpfs /nfsro/unionfs_rw tmpfs rw 0 0
> none /var unionfs rw,dirs=/nfsro/unionfs_rw/var=rw:/var=ro 0 0

* NFS server, /etc/exports
> /ptg/rootfs                     129.187.147.0/24(ro,mp=/ptg,async,no_root_squash,subtree_check)

Regards,
 Jens


More information about the unionfs mailing list