Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : comp.os.linux.miscDate : 03. May 2025, 04:10:58
Autres entêtes
Message-ID : <m7lfq1Fsk04U1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Pan/0.160 (Toresk; )
On Fri, 02 May 2025 22:29:36 GMT, Charlie Gibbs wrote:
It probably wasn't "work", I forget now. All I remember is that it was
done in such a way as to make clean-up very ugly. Hopefully Micro Focus
cleaned up their act not long afterwards.
In our system when an incident was completed it was archived in a DB2
database. If for some reason the server on the DB2 machine couldn't be
reached it was stored locally as a file that would be uploaded later.
The site was usually configured with a backup machine running in parallel,
often on a physically remote site in case the dispatch center was flooded
(it happened a couple of times). It usually worked well but one evening
the switchover didn't go well. Somehow, it's always after 5 PM when things
go to hell.
The problem with a backup site is it is out of sight and out of mind. The
DB2 server had changed but the configuration on the remote site hadn't. It
was doing what it was supposed to do, store a file if it couldn't send it
to DB2. For months...
The logic was the main controller would check to see if any store files
needed to be uploaded during its idle time, basically doing a scandir() to
find the oldest. That pretty much stopped the controller in its tracks.
When we logged into the site and tried to see what was in the directory
with Explorer, that locked up the whole machine. After getting control
back we very gingerly deleted the directory without even trying to see
what was inside.
It may have been the NutCracker implementation on Windows, but using the
native Windows API FindFirstFile/FindNextFile was a lot faster than
scandir. You need to be careful with using Cygwin or Nutcracker when
implementing POSIX functions on Windows. Mostly they work fine but there
are pitfalls.