9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] plan9.ini fs= should accept full dial strings
@ 2021-08-26  3:36 sl
  2021-08-26 11:31 ` james palmer
  0 siblings, 1 reply; 2+ messages in thread
From: sl @ 2021-08-26  3:36 UTC (permalink / raw)
  To: 9front

let's say we want to do both serve a full file system
to certain clients *and* serve a specially constructed
namespace to generic clients trying to 9fs us on the
standard port.

currently, plan9.ini fs= value must be just an ip
address or host name. the system translates it
internally to tcp![ip]!564.

why can't fs= be any valid dial string?

sl

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] plan9.ini fs= should accept full dial strings
  2021-08-26  3:36 [9front] plan9.ini fs= should accept full dial strings sl
@ 2021-08-26 11:31 ` james palmer
  0 siblings, 0 replies; 2+ messages in thread
From: james palmer @ 2021-08-26 11:31 UTC (permalink / raw)
  To: 9front

Quoth sl@stanleylieber.com:
> let's say we want to do both serve a full file system
> to certain clients *and* serve a specially constructed
> namespace to generic clients trying to 9fs us on the
> standard port.
> 
> currently, plan9.ini fs= value must be just an ip
> address or host name. the system translates it
> internally to tcp![ip]!564.
> 
> why can't fs= be any valid dial string?
> 
> sl

seems to be because the port depends onthe value of bootargs.

tcp boot is on 564 and tls boot is 17020.

to keep compatibility with existing plan9.ini files the fs variable would need to be parsed to see if a port has been specified.

another option might be to treat bootargs as a dialstring (similar to how local filesystems are handled) like so:

bootargs=local!/dev/sdE0/fs -> local hjfs
bootargs=tls!192.168.0.2 -> tls to the 192.168.0.2 file server
bootargs=tcp!biobuf.link!555 -> tcp boot to a remote file server on a non standard port

- james

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-26 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26  3:36 [9front] plan9.ini fs= should accept full dial strings sl
2021-08-26 11:31 ` james palmer

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ https://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git