TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Oli
from: Wilfred van Velzen
date: 2021-09-16 15:33:00
subject: Re: filebox

Hi Oli,

On 2021-09-15 14:41:18, you wrote to me:

 Ol>>> How is that different to arcmail bundles referenced in a FLO file?

 WvV>> Access to files in a regular BSO directory is strictly regulated
 WvV>> through the use of lock files (*.csy, *.bsy). So different programs
 WvV>> won't access the same files at the same time. There is no such
 WvV>> standard for fileboxes.

 Ol> True, no formal standard. But it's obvious that the program should lock the
 Ol> file before modifying it or when a transfer is in progress. No idea how
 Ol> binkd and hpt handles fileboxes though. I safe strategy would be to lock
 Ol> all files in a filebox when a session starts

It's not safe. As you show in the wikipedia quotes on file locking, it's cooperative on unix-like os's.

 Ol> (at the same time the *.bsy file is written).

There are no *.bsy files written in fileboxes.

 Ol> As fileboxes usually don't replace BSO, but working in addition to
 Ol> BSO, the program modifying anything in the filebox can create a .bsy
 Ol> file in the BSO.

It could, but it doesn't accomplish anything, because they will be ignored by other processes accessing the filebox.

 Ol> Of course we cannot rely on such behaviour, because there is no
 Ol> standard.

Indeed. So don't rely on it, period.

 Ol> But from the tossers perspective it shouldn't be a problem to safely
 Ol> create / modify 'dailyBundles' in fileboxes. Just create a *.bsy file.

And that wouldn't help at all, when those *.bsy files are ignored by other processes accessing the filebox...


Bye, Wilfred.

--- FMail-lnx64 2.1.0.18-B20170815
                              
* Origin: FMail development HQ (2:280/464)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.