[Unionfs] cow problem?

Pásztor Lénárd Zoltán lenard.pasztor at gmail.com
Wed Dec 5 12:48:47 EST 2007


Hi,

I am using unionfs 2.1.10 (for 2.6.23.8).
The unionfs root has two layers, a read-only nfs filesystem and a tmpfs.
When I doing some test i got this:

root at test:~# mkdir /var/lib/misc/testdir
mkdir: cannot create directory `/var/lib/misc/testdir': Read-only file
system
root at test:~# mkdir /var/lib/misc/testdir
mkdir: cannot create directory `/var/lib/misc/testdir': Read-only file
system
root at test:~# touch /var/lib/misc/testdir
root at test:~# rm /var/lib/misc/testdir
root at test:~# mkdir /var/lib/misc/testdir && echo OK
OK
root at test:~#

It looks like a problem within unionfs COW algoritm. If the parent directory
not exists in the COW layer the mkdir failed.
When the parent directory (/var/lib/misc) exists in the COW layer (after
touching a file on it) the subdirectory can created.
It is a real bug, or I miss something?

-- 
thx,

Lénárd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.fsl.cs.sunysb.edu/pipermail/unionfs/attachments/20071205/ce755987/attachment.htm


More information about the unionfs mailing list