On Thu, Jan 23, 2025 at 09:47:05AM -0800, Skip Tavakkolian wrote:
> Couldn't this be done with union directories with the proper ordering
> and use '-c'?
> 
> This thread from 24 years ago might be relevant. The goal was to stash
> files that had been pulled from the remote fs, to handle low bandwidth
> and unreliable networks. If I understand your use case, you want to be
> able to keep the changes on the local shadow fs until ready to push
> them to the remote?
> 

Yes, exactly! And generally for small changes that are more easily
seen as diff.

> https://9fans.topicbox.com/groups/9fans/T74b794a0b25b3452-M4e93273ae029a34387d5b847/9fans-persistent-cache-for-cfs
> 

Thanks for the link!

> I think for environments where the external source (fs) is heavily
> used, inconsistency would become an issue.
> 

Hum, you hit one point: if the diff doesn't apply there is some policy
to decide about what to do, and there should be a way to administrate
the thing by requiring user to reconciliate the two (and if the diff
is already applied, the diff should be simply suppressed).

> On Thu, Jan 23, 2025 at 3:10?AM <tlaro...@kergis.com> wrote:
> > 
> > Does someone know of a "patcher file server" for Plan9? I mean:
> > 
> > There are external sources in a hier called S. (S is considered a
> > remote resource, owned by some external entity and this is text.)
> > 
> > There is a same hier called P, with some filename matching a filename
> > on S, but with, for clarity (it is not required if they are diffs), a
> > '.diff' extension.
> > 
> > If there is such a diff, the file served is S/filename patched with
> > S/filename.diff. If there is not, the vanilla file is served.
> > 
> > If a modification is made, the diff is modified or created.
> > 
> > (Whether the P is itself backed by a filesystem doing versioning is
> > orthogonal.)
> > --
> > Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
> >              http://www.kergis.com/
> >             http://kertex.kergis.com/
> > Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T332d621280e18c2d-M947ebdb97d552bc7f4afe025
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to