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?

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

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

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

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

Reply via email to