On Fri, 7 Oct 2005 [EMAIL PROTECTED] wrote:

> Please try 'touch'ing both by super user, and by normal user.
> 
> And, if you dont mind, apply this patch and try 'touch' again.
> This patch is for 20050929-0844, prints more debug info. you dont
> have to use debug=19 as mount option. You had better 'sleep 1' just
> before 'touch xxx' to make debug print easy to read.
> When "i_op->perm c01b72b0" appears, check the function name by
> 'grep c01b72b0 your_System.map" (of cource, the address differs from
> this one).


ok, here the results:

#########################################################################

+ insmod /l/src/t/unionfs-20050929-0844/unionfs.ko
+ dmesg
+ grep 'Registering unionfs'
+ tail -1
Registering unionfs 20050929-0844
+ mount -o ro 132.230.1.13:/q /a
+ ssh 132.230.1.13 grep /q /etc/exports /proc/mounts
/etc/exports:/q 0.0.0.0/0.0.0.0(ro,no_root_squash,async)
/proc/mounts:/dev/hda2 /q ext2 rw 0 0
+ mount -t tmpfs none /diff
+ mount -t unionfs -o dirs=/diff=rw:/a=ro none /b
+ sleep 1
+ id
uid=0(root) gid=0(root) groups=0(root)
+ touch /b/x1
touch: cannot touch `/b/x1': Permission denied
+ sleep 1
+ su mawa -c 'id; touch /b/x2'
uid=1003(mawa) gid=1000 groups=1000
touch: cannot touch `/b/x2': Permission denied
+ sleep 1
+ /bin/ls -la /a /diff /b
/a:
total 33
drwxrwxrwx   6 root root  4096 Oct  6 01:02 .
drwxr-xr-x  29 root root   736 Oct  5 12:32 ..
drwxr-xr-x   2 root root  4096 Oct  6 01:02 1
drwxr-xr-x   2 root root  4096 Oct  6 01:02 2
drwxr-xr-x   2 root root  4096 Oct  6 01:02 3
drwx------   2 root root 16384 Oct  6 01:01 lost+found

/b:
total 29
drwxrwxrwt   6 root root    40 Oct  7 12:54 .
drwxr-xr-x  29 root root   736 Oct  5 12:32 ..
drwxr-xr-x   2 root root  4096 Oct  6 01:02 1
drwxr-xr-x   2 root root  4096 Oct  6 01:02 2
drwxr-xr-x   2 root root  4096 Oct  6 01:02 3
drwx------   2 root root 16384 Oct  6 01:01 lost+found

/diff:
total 1
drwxrwxrwt   2 root root  40 Oct  7 12:54 .
drwxr-xr-x  29 root root 736 Oct  5 12:32 ..

#########################################################################


Oct  7 12:54:52 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_lookup_backend:46: enter
Oct  7 12:54:52 fs8 kernel: unionfs_permission:875: mask 3
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{0, 0}, err -30
Oct  7 12:54:52 fs8 kernel: inode_permission:833: mask 3
Oct  7 12:54:52 fs8 kernel: inode_permission:857: i_op->perm c01b9a60
Oct  7 12:54:52 fs8 kernel: inode_permission:860: retval -13
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err -13
Oct  7 12:54:52 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{0, 0}, err 0
Oct  7 12:54:52 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:53 fs8 su: (to mawa) root on /dev/pts/1
Oct  7 12:54:54 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_lookup_backend:46: enter
Oct  7 12:54:54 fs8 kernel: unionfs_permission:875: mask 3
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{1003, 1000}, err -30
Oct  7 12:54:54 fs8 kernel: inode_permission:833: mask 3
Oct  7 12:54:54 fs8 kernel: inode_permission:857: i_op->perm c01b9a60
Oct  7 12:54:54 fs8 kernel: inode_permission:860: retval -13
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err -13
Oct  7 12:54:54 fs8 kernel: unionfs_permission:875: mask 1
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 0, is_file 0, 
hi{i64534, 0041777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:907: bindex 1, is_file 0, hi{i2, 
0040777, 0, 0}, fs{1003, 1000}, err 0
Oct  7 12:54:54 fs8 kernel: unionfs_permission:915: err 0


#########################################################################

# grep c01b9a60 /boot/System.map-2.6.11.4-21.9-smp 
c01b9a60 T nfs_permission

#########################################################################


Martin
_______________________________________________
unionfs mailing list
unionfs@mail.fsl.cs.sunysb.edu
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to