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

2016-04-23 Thread Valeri Galtsev

On Sat, April 23, 2016 1:58 am, bugzilla-nore...@freebsd.org wrote:
> 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
>

My attitude would be: keep the spaces out of directory names - at least
where educated person: system administrator makes the decision, such as
mount points. Not everything that other systems have has to be accepted
for FreeBSD. Such as spaces in paths MS Widows system is infested with due
to dumb decision by system vendor promoting usernames "Firstname Lastname"
like.

Just my humble opinion.

Valeri

> (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"
>



Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
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-23 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663

--- Comment #3 from Jamie Gritton  ---
No, that won't work - strunvis(3) unfortunately doesn't escape things that way.
 Also, getfsent(3) treats all whitespace the same.  As it should - I remember
being stymied by sendmail.cf files that looked perfect but didn't work right,
because there some spaces where a tab should be.

-- 
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"


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

2016-04-23 Thread James Gritton

On 2016-04-23 08:09, Valeri Galtsev wrote:

On Sat, April 23, 2016 1:58 am, bugzilla-nore...@freebsd.org wrote:

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



My attitude would be: keep the spaces out of directory names - at least
where educated person: system administrator makes the decision, such as
mount points. Not everything that other systems have has to be accepted
for FreeBSD. Such as spaces in paths MS Widows system is infested with 
due
to dumb decision by system vendor promoting usernames "Firstname 
Lastname"

like.

Just my humble opinion.


There's something to that - spaces in filenames are a big headache.  But 
in this case it's a settled question - it's not something that "other 
systems" do, but something that is already supported in FreeBSD: 
getfsent(3) allows an fstab to have escaped characters in path names, so 
jail(8) should as well.  If I could just use getfsent(3) myself this 
would never have come up, but my need to operate in in-memory strings 
instead of a file made that inconvenient.  Fortunately it just called 
strunvis(3) which is trivial to add.


- 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"