Re: [9fans] command line tool for storing / reading files on venti

2008-06-16 Thread ron minnich
On Sun, Jun 15, 2008 at 4:58 PM, Enrico Weigelt <[EMAIL PROTECTED]> wrote: > * Pietro Gagliardi <[EMAIL PROTECTED]> wrote: >> Doesn't matter. Process groups are process groups on any Unix clone. >> If it's daemons you're dealing with, then it leaves the scope of this >> room. If it's Windows, you'r

Re: [9fans] command line tool for storing / reading files on venti

2008-06-16 Thread Steve Simon
> Doesn't matter. Process groups are process groups on any Unix clone. > If it's daemons you're dealing with, then it leaves the scope of this > room. If it's Windows, you're out of luck. Not true, Windows has the concept of process groups. See the description of CREATE_NEW_PROCESS_GROUP at h

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Venkatesh Srinivas
Hi, Inferno's vacfs lets you cd into a score and read files from there without a mount per-score. --vs

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Enrico Weigelt
* Russ Cox <[EMAIL PROTECTED]> wrote: Hi, > I wasn't kidding. Update your plan9port > and you will find an unvac command. my last checkout is a about 5 days old, and I couldn't find some working unvac command. But I'll have a re-checkout. > You'll get more leverage if you stick to vac files.

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Enrico Weigelt
* Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > Doesn't matter. Process groups are process groups on any Unix clone. > If it's daemons you're dealing with, then it leaves the scope of this > room. If it's Windows, you're out of luck. I'm running p9p on Linux. No idea where the actual problem s

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Pietro Gagliardi
Doesn't matter. Process groups are process groups on any Unix clone. If it's daemons you're dealing with, then it leaves the scope of this room. If it's Windows, you're out of luck. On Jun 15, 2008, at 1:13 PM, Enrico Weigelt wrote: * Pietro Gagliardi <[EMAIL PROTECTED]> wrote: On Jun 15,

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Russ Cox
> 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).

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread erik quanstrom
>> Aha. But this still does not terminate the vacfs, right ? > > > Once you kill the script, you also kill the processes it created - > that's what process groups are, remember? incorrect. the script exits, it is not killed. for example ; cat script #!/bin/rc rfork n

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Enrico Weigelt
* Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > On Jun 15, 2008, at 12:02 PM, Enrico Weigelt wrote: > > >Aha. But this still does not terminate the vacfs, right ? > > > Once you kill the script, you also kill the processes it created - > that's what process groups are, remember? That doesnt s

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Pietro Gagliardi
On Jun 15, 2008, at 12:02 PM, Enrico Weigelt wrote: Aha. But this still does not terminate the vacfs, right ? Once you kill the script, you also kill the processes it created - that's what process groups are, remember? Please read "The Use of Name Spaces in Plan 9" and the rfork man page

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Enrico Weigelt
* Russ Cox <[EMAIL PROTECTED]> 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 > scrip

Re: [9fans] command line tool for storing / reading files on venti

2008-06-14 Thread Russ Cox
>> no, it doesn't. on plan 9, when the shell script exits, >> nothing will have vacfs mounted anymore, so vacfs >> will get an eof on the 9p connection and exit. >> that's why i put an rfork n in the script. > > aha, that's probably what the rfork call does ? rfork n forks the name space, so tha

Re: [9fans] command line tool for storing / reading files on venti

2008-06-14 Thread Enrico Weigelt
* Russ Cox <[EMAIL PROTECTED]> wrote: Hi, > no, it doesn't. on plan 9, when the shell script exits, > nothing will have vacfs mounted anymore, so vacfs > will get an eof on the 9p connection and exit. > that's why i put an rfork n in the script. aha, that's probably what the rfork call does ?

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Russ Cox
> BTW: still leaves the problem that lot's of vacfs servers are > started not terminated after use :( no, it doesn't. on plan 9, when the shell script exits, nothing will have vacfs mounted anymore, so vacfs will get an eof on the 9p connection and exit. that's why i put an rfork n in the script

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Enrico Weigelt
* Russ Cox <[EMAIL PROTECTED]> wrote: > > The venti/read and venti/write commands just support single blocks. > > Vac seems fine as archive tool, but it only can store - I need some > > "unvac" command. (mounting each single archive via vacfs is a bit > > too complicated for my project). > > I'm h

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Enrico Weigelt
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Since you mention using vac for storage, I assume you're using venti > directly, not via fossil, in which case the '9fs dump' suggestion will > do nothing for you. ACK. > I don't believe there is anything in Plan 9 that does what you want > (certai

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Russ Cox
> The venti/read and venti/write commands just support single blocks. > Vac seems fine as archive tool, but it only can store - I need some > "unvac" command. (mounting each single archive via vacfs is a bit > too complicated for my project). I'm hesitant to bother replying, as we learned earlier

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Pietro Gagliardi
I don't think so. 9fs dump gives you everything afaik. On Jun 13, 2008, at 4:29 PM, Enrico Weigelt wrote: * Pietro Gagliardi <[EMAIL PROTECTED]> wrote: 9fs dump command /n/dump//mmdd/absolutepathtofile but this still requires me to mount each single vac archive before reading, and I need

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Enrico Weigelt
* Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > 9fs dump > command /n/dump//mmdd/absolutepathtofile but this still requires me to mount each single vac archive before reading, and I need to create a new one for each upload, right ? cu -- ---

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread a
Since you mention using vac for storage, I assume you're using venti directly, not via fossil, in which case the '9fs dump' suggestion will do nothing for you. I don't believe there is anything in Plan 9 that does what you want (certainly the BUGS section in venti(1) implies not), but you might lo

Re: [9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Pietro Gagliardi
9fs dump command /n/dump//mmdd/absolutepathtofile -> year mmdd -> month and date On Jun 13, 2008, at 3:50 PM, Enrico Weigelt wrote: Hi folks, is there any command line tool for reading and writing files on venti ? The venti/read and venti/write commands just support single blocks.

[9fans] command line tool for storing / reading files on venti

2008-06-13 Thread Enrico Weigelt
Hi folks, is there any command line tool for reading and writing files on venti ? The venti/read and venti/write commands just support single blocks. Vac seems fine as archive tool, but it only can store - I need some "unvac" command. (mounting each single archive via vacfs is a bit too complic