Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2001 16:59:31 +0200
From:      Andrea Campi <andrea@webcom.it>
To:        current@freebsd.org
Subject:   RFC: /compat/linux altpath behavior under admin control
Message-ID:  <20011001165931.A96486@webcom.it>

next in thread | raw e-mail | index | archive | help
Hi current@,

as you no doubt know, when you run a Linux binary every file access undergoes
an intermediate step where the kernel looks for a file with the same name
under /compat/linux. This interferes with basically anything which needs to
traverse the whole tree, and in particular backup software (Tivoli Storage
Manager, in my case). You can reproduce this by just doing:

$ /compat/linux/bin/bash
$ ls -laR / | less

And you see a nice mix of Linux and FreeBSD dirs / files.

After playing tricks for sometime (I currently remount filesystems via nullfs
on /backup and backup that tree), I am now looking at a different solution.
I am preparing a patch which should only touch linux_emul_find() in
src/sys/compat/linux/linux_util.c, to check if the process name
(td->td_proc->p_args) matches one of a list given with a sysctl, and if so,
just return with no mapping.

I will produce a patch, but I will need assistance wrt any locking I might
need, making sure sysctl works properly, etc. Is there anybody interested
enough to volunteer to mentor me on this mini-project? ;-)

TIA, bye,
	Andrea


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011001165931.A96486>