Sock­ets and nullfs: works now in ‑cur­rent

I just updat­ed to a recent -cur­rent and tried the new nullfs. Sock­ets (e.g. the MySQL one) work now with nullfs. No need to have e.g. jails on the same FS and hardlink the sock­et to not need to use TCP in MySQL (or an IP at all for the jail).

Great work!

Send to Kin­dle

Hint: using sock­ets across jails

I want to use a sock­et (mysql) in mul­ti­ple jails. Using nullfs to mount it in each jail where you want to use it does not work (bug in nullfs?). Using a hardlink (if the jails reside on the same FS) works. I hope this info safes a lit­tle bit of time in case some­one tries to do the same.

The host­name MySQL sees in such a con­nec­tion is “local­host”. Maybe this is obvi­ous to one or anoth­er, but because jails don’t have a it was not obvi­ous to me.

Send to Kin­dle