From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <36c9016b7918c302d777f1a605fc107f@brasstown.quanstro.net> <2CBEED8D-800D-40C8-8182-162695D9FF30@9srv.net> <45fe7ac7a1dab989624aa4ed2b376ff9@brasstown.quanstro.net> From: Skip Tavakkolian Date: Thu, 5 Feb 2015 17:22:30 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1137aa1e80d88a050e5a8c92 Subject: Re: [9fans] wstat and atomic directory change Topicbox-Message-UUID: 419fe99e-ead9-11e9-9d60-3106f5b1d025 --001a1137aa1e80d88a050e5a8c92 Content-Type: text/plain; charset=UTF-8 option 2 doesn't make sense. using the cpu(1) as a test setup, please show how such a wstat would work atomically if one does 'mv /mnt/term/foo /tmp/foo'. note that 'cpu' exports the local fs to the cpu it connects to (which is then mounted on /mnt/term). also one can 'cpu' to a different domain (i.e different fs). On Thu Feb 05 2015 at 8:47:43 AM Giacomo Tesio wrote: > Il 05/Feb/2015 17:26 "erik quanstrom" ha scritto: > > > > I'm wondering for a > > > synthetic filesystem in which, when you move a folder in a special > > > directory, something magic happens. > > > As far as I can see, it is not possible with a 9p2000 fileservice, is > it? > > > > i don't see why you can't make a magic directory that works that way. > > > > How? Which 9p message would trigger the magic? > > I just see 2 options: > 1. Have a control file > 2. Use custom wstat with full path to move > > But if both are wrong, I'm lost. > > Giacomo > --001a1137aa1e80d88a050e5a8c92 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable option 2 doesn't make sense. =C2=A0using the cpu(1) as a test setup, pl= ease show how such a wstat would work atomically if one does 'mv /mnt/t= erm/foo /tmp/foo'. =C2=A0note that 'cpu' exports the local fs t= o the cpu it connects to (which is then mounted on /mnt/term). also one can= 'cpu' to a different domain (i.e different fs).

On Thu Feb 05 2015 at 8:47:43 AM Giacomo Tesio <giacomo@tesio.it> wrote:

Il 05/Feb/2015 17:26 "erik quanstro= m" <quan= stro@quanstro.net> ha scritto:

> > I'm wondering for a
> > synthetic filesystem in which, when you move a folder in a specia= l
> > directory, something magic happens.
> > As far as I can see, it is not possible with a 9p2000 fileservice= , is it?
>
> i don't see why you can't make a magic directory that works th= at way.
>

How? Which 9p message would trigger the magic?

I just see 2 options:
1. Have a control file
2. Use custom wstat with full path to move

But if both are wrong, I'm lost.

Giacomo

--001a1137aa1e80d88a050e5a8c92--