Hi, Most of interest I see around unionfs is about writable union, while my goal is opposite: totally read-only union, somewhat we could get with:
mount -t unionfs -o ro,dirs=/branch1=ro,/branch2=ro none /union After failed attempt to get such union working properly, I've found that single branch' "union" has the same trouble: dir entries seems not invalidating as expected to be. Here is the test performed with unionfs-1.1.2 on SuSE-10.0 (2.6.13 kernel). Root user, just mount: ------------------- [EMAIL PROTECTED]:~>mount | fgrep unionfs [EMAIL PROTECTED]:~>mount -t unionfs -o ro,dirs=/web/sites/me.nu/www=ro none /web/me.nu/www [EMAIL PROTECTED]:~>mount | fgrep unionfs none on /web/me.nu/www type unionfs (ro,dirs=/web/sites/me.nu/www=ro) [EMAIL PROTECTED]:~> ------------------- Regular user, files updates: ------------------- [EMAIL PROTECTED]:/web/sites/me.nu/www>lsmod | fgrep unionfs unionfs 367140 1 [EMAIL PROTECTED]:/web/sites/me.nu/www>mount | fgrep unionfs none on /web/me.nu/www type unionfs (ro,dirs=/web/sites/me.nu/www=ro) [EMAIL PROTECTED]:/web/sites/me.nu/www>l -d root drwxr-xr-x 2 w wy 4096 2006-01-30 20:02 root/ [EMAIL PROTECTED]:/web/sites/me.nu/www>cd root [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* ls: /web/sites/me.nu/www/root/*: No such file or directory ls: /web/me.nu/www/root/*: No such file or directory [EMAIL PROTECTED]:/web/sites/me.nu/www/root>echo 111 > f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* -rw-r--r-- 1 w wy 4 2006-01-30 20:00:53.000000000 +0200 /web/me.nu/www/root/f1 -rw-r--r-- 1 w wy 4 2006-01-30 20:00:53.000000000 +0200 /web/sites/me.nu/www/root/f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>echo 111 >> f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* -rw-r--r-- 1 w wy 8 2006-01-30 20:01:05.000000000 +0200 /web/me.nu/www/root/f1 -rw-r--r-- 1 w wy 8 2006-01-30 20:01:05.000000000 +0200 /web/sites/me.nu/www/root/f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>echo 111 >> f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* -rw-r--r-- 1 w wy 12 2006-01-30 20:01:55.000000000 +0200 /web/me.nu/www/root/f1 -rw-r--r-- 1 w wy 12 2006-01-30 20:01:55.000000000 +0200 /web/sites/me.nu/www/root/f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>rm f1 rm: remove regular file `f1'? y removed `f1' [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* ls: /web/sites/me.nu/www/root/*: No such file or directory ls: /web/me.nu/www/root/*: No such file or directory [EMAIL PROTECTED]:/web/sites/me.nu/www/root> ------------------- So far, everything was looking correct. Actually, removed "f1" file dentry still not invalidated, being persistent in cache: ------------------- [EMAIL PROTECTED]:/web/sites/me.nu/www/root>echo 111 >> f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root>'ls' -l --full-time /web/sites/me.nu/www/root/* /web/me.nu/www/root/* -rw-r--r-- 0 w wy 12 2006-01-30 20:01:55.000000000 +0200 /web/me.nu/www/root/f1 -rw-r--r-- 1 w wy 4 2006-01-30 20:02:20.000000000 +0200 /web/sites/me.nu/www/root/f1 [EMAIL PROTECTED]:/web/sites/me.nu/www/root> -------------- File size and mtime in union are different then in [single] branch. Is this known bug, or just something out of unionfs specification? Thanks, --Vladimir _______________________________________________ unionfs mailing list [email protected] http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
