Re: SYSV IPC on jails with separate key namespace

2016-04-22 Thread Miroslav Lachman

James Gritton wrote on 04/21/2016 19:18:

I've updated patch 48471
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=48471) which had a
patch to make jails work the way they should regarding SYSV IPC objects.
  There's a new patch there, that does the same thing, bit with some
different infrastructure around it.


This is really good news. Thank you James!


I plan to commit these patches pretty soon, to get into the 11 release.
I'd like some feedback first if anyone wants to try them out, but
barring that I'll accept my feedback after I commit :-).  They work at
least for some simple test cases, but I don't have anything handy that
actually makes significant use of SYSV IPC and I know that others do and
have been waiting to see something like this.


Will this be MFC to 10.x? I don't have any 11 (CURRENT) right now.
I would like to test this with few instances of PostgreSQL and Firebird 
in jails. I don't know when I will have time for it because I am busy 
with $WORK. I hope I will try it soon!


Thank you for your ongoing work on jails.

Miroslav Lachman
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


Re: SYSV IPC on jails with separate key namespace

2016-04-22 Thread James Gritton

On 2016-04-22 01:55, Miroslav Lachman wrote:

James Gritton wrote on 04/21/2016 19:18:

I've updated patch 48471
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=48471) which had a
patch to make jails work the way they should regarding SYSV IPC 
objects.

  There's a new patch there, that does the same thing, bit with some
different infrastructure around it.


This is really good news. Thank you James!

I plan to commit these patches pretty soon, to get into the 11 
release.

I'd like some feedback first if anyone wants to try them out, but
barring that I'll accept my feedback after I commit :-).  They work at
least for some simple test cases, but I don't have anything handy that
actually makes significant use of SYSV IPC and I know that others do 
and

have been waiting to see something like this.


Will this be MFC to 10.x? I don't have any 11 (CURRENT) right now.
I would like to test this with few instances of PostgreSQL and
Firebird in jails. I don't know when I will have time for it because I
am busy with $WORK. I hope I will try it soon!

Thank you for your ongoing work on jails.


Sure, it can go to 10 as well, though I don't recall if it will make it 
into any releases at this point.  And you're welcome :-).


- Jamie
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


[Bug 208806] [jail] starting a jail more than once results in the ID file being blown away

2016-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208806

Jamie Gritton  changed:

   What|Removed |Added

 Status|New |In Progress
 CC||ja...@freebsd.org
   Assignee|freebsd-jail@FreeBSD.org|ja...@freebsd.org

--- Comment #1 from Jamie Gritton  ---
Created attachment 169586
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169586&action=edit
Stop removing jail.id files when startup fails

The diff is quite simple: rc.d/jail used to create the file when a jail
started, but after the change to use config files, that was expanded to also
remove the file when startup failed.  The fix is simply not to do that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


[Bug 208663] It is not possible to use spaces in fstab paths when using jails

2016-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663

Jamie Gritton  changed:

   What|Removed |Added

   Assignee|freebsd-b...@freebsd.org|ja...@freebsd.org
 Status|New |In Progress

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


[Bug 208663] It is not possible to use spaces in fstab paths when using jails

2016-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663

Jamie Gritton  changed:

   What|Removed |Added

 CC||ja...@freebsd.org

--- Comment #1 from Jamie Gritton  ---
Created attachment 169588
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169588&action=edit
Use strunvis to escape fstab characters

I took at look at getfsent(3), and it uses strunvis(3) to parse escape codes
(only in the pathnames).  So I've done the same thing when I parse fstab lines
and the "mount" parameter.

Now the example you gave works, with the same \040 for space.  The quotes still
won't work, but then they don't work in getfsent either, so that sounds proper.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"


[Bug 208663] It is not possible to use spaces in fstab paths when using jails

2016-04-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663

--- Comment #2 from Chris Hutchinson  ---
Won't the following work?

$ mkdir /tmp/Space\ Test
$ mkdir /tmp/Space\ Mountpoint

$ echo "/tmp/Space\ Test /tmp/Space\ Mountpoint" nullfs ro 0 0" >>
/etc/fstab.jail_name

(untested)

Also, isn't fstab called fsTAB for a reason? While I've never
tried to create one that uses spaces instead of tabs, I
can't help but wonder. :)

--Chris

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"