Hello Rodrigo, On Sat, Feb 22, 2025 at 03:25:39PM +0100, Rodrigo G. López wrote: > hi thierry, > > on 9front's cwfs, i think you can mark the file as temporary, then clear > this bit to let the fs dump it as usual. >
Thanks for the tip! I missed this part. If this does exist, it will at least solve the problem for a tentative file (and if it works with directories too, even better). One may say that using sam(1) or another utility to edit a file mitigate the problem, since the file is only saved when explicitely requested (or on exit), but there is a moot laps of time during which you may want to save temporarily. On the other hand, one can use a directory under "other", and script to save (or not) some modified files to another "fscache" directory. But to be able to explicitely say "commit this now", pushing it in the under fs layer (the fscache) would be handy. > > On Sat, Feb 22, 2025, 13:14 <tlaro...@kergis.com> wrote: > > > WORM is a great idea, allowing to store only the diff and to be > > able to version is a bonus. > > > > But there is one drawback: when one is modifying rapidly a file > > (tentatives), it can spoil the worm with useless modifications. > > > > The fossil snapshots were a solution (allowing to "commit" on demand). > > > > From https://9p.io/sys/doc/fs/fs.html, the copying of modifications > > from fscache to buffer (scp) as well as the copying of the buffer > > to the WORM (wcp) is done every ten seconds. > > > > Is there a way, from userland, to modify the frequency of the > > scp and wcp depending on the binding name? > > > > Has someone attempted to build a stack of other and fscache, so that > > the writable upper level (other) is used as a chalkboard and, when the > > user is satisfied with the tentative file, he can "commit" this > > "minute" (sketch) to the fscache---letting then the normal procedures > > register the differences in the WORM? > > > > Related: when using git, git by itself has the registration of the > > modifications. So the .git could be put in fscache, but the current > > copy should be in other. Is there a way to achieve this---if I > > understand correctly (I may not), gitfs serves the .git hierarchy but > > is not creating as an artefact the working directory, making the > > branch appear, and overwriting with locally modified not committed > > files? (Hoping my sort of English is sufficiently understandable...) > > -- > > 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/T5a27390f138b4be1-Mdd79d16e1ac8c5fdfb45a5d1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription