From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 15 Jun 2008 18:02:35 +0200 From: Enrico Weigelt To: 9fans@9fans.net Message-ID: <20080615160235.GA19951@nibiru.local> References: <20080614130357.GA25092@nibiru.local> <20080614175003.4DA171E8C3A@holo.morphisms.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080614175003.4DA171E8C3A@holo.morphisms.net> User-Agent: Mutt/1.4.1i Subject: Re: [9fans] command line tool for storing / reading files on venti Topicbox-Message-UUID: c0bb85ae-ead3-11e9-9d60-3106f5b1d025 * Russ Cox wrote: > rfork n forks the name space, so that any changes > made by the script don't propagate out to the > parent process. This means that (1) vacfs can > mount on /n/vac without any fear of bothering > some other instance of the script, and (2) when the > script exits, there will be no more references to > the mounted /n/vac and the kernel will unmount it. Aha. But this still does not terminate the vacfs, right ? > > Meanwhile I've hacked up vacfs to give it an "autodie" mode. > > It means: automatically terminate if the last file has been > > closed. Seems to work, but now idea how stable it would be > > in production ;-o > > In the time it took you to do that you could probably > have written unvac instead. hmm, maybe ;-o Meanwhile I've written an new tool which stores single files (no directory stuff at all). Not perfect yet, but already works quite fine (IMHO): svn://nibiru.metux.de/public/plan9port/apps/vtstore/ In the next step, I'll add http-alike metadata (mimetype, etc). cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ cellphone: +49 174 7066481 email: info@metux.de skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------