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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).