kern/159663: sockets don't work though nullfs mounts
trociny at freebsd.org
Tue Sep 27 06:49:14 UTC 2011
On Tue, 27 Sep 2011 07:36:28 +0200 Robert Millan wrote:
RM> 2011/9/25 Mikolaj Golub <trociny at freebsd.org>:
>> As a proof of concept below is a patch that implements it.
RM> This works very well, I'm currently using your patch to run X11 over a
RM> nullfs-mounted /tmp.
>> The issues with this approach I see so far:
>> - we need an additional flag for namei;
RM> What does this involve?
Well, adding yet another flag just to handle this one case might be not very
good idea :-)
But actually it is possible to do without the additional flag, with the only
hack in nullfs code: in lookup and create return lower vnode if it is a
socket, like in the patch below. It works for me but I have not tested much
and not checked yet if use cases are possible when this makes undesirable
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1241 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bugs/attachments/20110927/c3bf6a08/nullfs.VSOCK.bin
More information about the freebsd-bugs