9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] any updated version of substfs?
@ 2002-07-09 11:37 Fco.J.Ballesteros
  2002-07-09 12:34 ` Axel Belinfante
  0 siblings, 1 reply; 3+ messages in thread
From: Fco.J.Ballesteros @ 2002-07-09 11:37 UTC (permalink / raw)
  To: 9fans

Someone sent me an early version of substfs.
Is there an updated version of this?

thanks



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

* Re: [9fans] any updated version of substfs?
  2002-07-09 11:37 [9fans] any updated version of substfs? Fco.J.Ballesteros
@ 2002-07-09 12:34 ` Axel Belinfante
  2002-07-09 12:41   ` Axel Belinfante
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Belinfante @ 2002-07-09 12:34 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

> Someone sent me an early version of substfs.
> Is there an updated version of this?

I did. No, I don't have anything newer.
What you have is what I currently run.

It is still 'unfinished, unpolished'. (see below)

For those who missed my previous post about it, sort of a repost:
What it does? It sits between 'us' and a (remote) file server.
Its purpose is to do substitutions on file names in the 9p messages
to and from the (remote) file server.
Advantage of this approach: no need to adapt the (remote) file servers 
like u9fs), no need to adapt local stuff. Disadvantage: certainly
some performance loss.
Don't know whether the name substfs is correct, or whether something
like substsrv would be better.
For flexibility, to experiment, the substition rules are not built in.
Instead, on its command line it is given the names of two programs that
do back and forth translation. These translation programs just accept
a filename on stdin and output the translation on stdout.

The attached gzipped tar file contains the source and translation
scripts I currently use.

Inspiration and source code taken from multiple places
(u9fs? 9pcon,... see my previous post)

Status:
it still contains memory leaks, which may be one of the reasons for the
machine crash I mentioned in my earlier post of today, subject: Re: PGP)
Also, translation is not yet done for all 9p messages that would need it,
but that is easy enough to add.
Main real problem is that it might loose directory entries,
when reading directories, when translation of directory entry names
extend these such that the result no longer fits in a single 9p message.

Enjoy,
Axel.


[-- Attachment #2: substfs.tgz --]
[-- Type: application/octet-stream , Size: 3346 bytes --]

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

* Re: [9fans] any updated version of substfs?
  2002-07-09 12:34 ` Axel Belinfante
@ 2002-07-09 12:41   ` Axel Belinfante
  0 siblings, 0 replies; 3+ messages in thread
From: Axel Belinfante @ 2002-07-09 12:41 UTC (permalink / raw)
  To: 9fans

in addition to my previous message, minor addition to the guide file,
to show usage (where one and two could be unix machines running u9fs)

substfs -m q -s subone -n tcp!one!9fs edit-from edit-to  >/dev/null >[2=1] &
substfs -m q -s subtwo -n tcp!two!9fs edit-from edit-to  >/dev/null >[2=1] &
mount /srv/subone /n/one
mount /srv/subtwo /n/two

Axel.



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

end of thread, other threads:[~2002-07-09 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09 11:37 [9fans] any updated version of substfs? Fco.J.Ballesteros
2002-07-09 12:34 ` Axel Belinfante
2002-07-09 12:41   ` Axel Belinfante

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).