Subject: Re: home directories in Linux emulation
To: Frederick Bruckman <fredb@immanent.net>
From: Roman Kennke <roman@ontographics.com>
List: netbsd-help
Date: 01/29/2005 22:26:21
--=-FaNBI+EBr0jcAMz2CKfu
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Am Samstag, den 29.01.2005, 16:08 +0000 schrieb Frederick Bruckman:
> In article <41FB4F6F.8070201@ontographics.com>,
> 	Roman Kennke <roman@ontographics.com> writes:
> >=20
> > I try to run a Java application in Linux emulation. It seems that it ha=
s=20
> > problems with accessing my home directory /home/roman. Obviously only=20
> > the directory structure below /emul/linux is visible and there I have n=
o=20
> > /emul/linux/home/roman directory.
>=20
> That isn't how the emulation generally works. When a linux application
> tries to open "/home/roman", the shim first tries "/emul/linux/home/roman=
/",
> then, if it fails, "/home/roman/". The application isn't supposed to know
> about the "/emul/linux" thing.

Sure. But obviously in my setup this leads to problems. I will try to
describe it here. I was trying to run NetBeans which is a Java app and
thus runs on Java SDK from Sun which in turns runs in Linux emulation.
When I access my home directory /home/roman in NetBeans via a
filechooser box I get the contents of the real thing. When I then choose
a folder and close the box with Ok, the application complains about an
invalid path. Obviously it checked the /emul/linux/home/roman dir
instead of /home/roman and found that it does not exists. I am not sure
if the problem is in the Linux emulation (wrong handling of some
file-related syscalls) or in the JDK (maybe it uses some obscure
syscalls which are not/badly emulated) or NetBeans (maybe uses external
tools in /bin or something) or a combination of these. But I know, that
union mounting /home over /emul/linux/home does help, it solves at least
this problem (and exposes others... )

/Roman


--=-FaNBI+EBr0jcAMz2CKfu
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBB+/993sO1VIw8IDoRAt0OAKD12af5oFvrw5Z5QppqdBAZBsM6LQCfTcWw
6l7qt8oqMeVeqzqEa858Y84=
=C6Jg
-----END PGP SIGNATURE-----

--=-FaNBI+EBr0jcAMz2CKfu--