I found a curious problem with cvs and directories bind-mounted. If
one tries to perform any kind of cvs operation inside that dir, cvs
fails with an error like "cannot get working directory: No such file
or directory".

The problem is pretty easy to be reproduced, at least in my setup here
(CVS 1.12.13):

] mount -o bind /Files/Compile/Sources /Mount/GoboLinux
] cd /Mount/GoboLinux
] cvs -d:pserver:anonymous:@cvs.savannah.nongnu.org:/sources/goboscripts login
cvs [login aborted]: cannot get working directory: No such file or directory

By looking at strace output, it looks like the cvs command is using a
new syscall named openat(), shown by strace as 'SYS_295'. Some
operations using this file descriptor are returning different values
when the command is run inside /Files/Compile/Sources and
/Mount/GoboLinux, so I guess this can be where the problem is.

Any suggestions on how to make it possible to run cvs from inside a
bind-mounted dir on a recent (>2.6.16) kernel?

-- 
Lucas
powered by /dev/dsp
_______________________________________________
gobolinux-devel mailing list
[email protected]
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to