Short: Makes MuFS (+ others) accept weird locks Author: nybo@softhome.net (Martin Nybo Andersen) Uploader: nybo softhome net (Martin Nybo Andersen) Type: game/patch Version: 1.31 Requires: OS 2.0 (V36) Architecture: m68k-amigaos __________________________________________________________________________________ Ever wanted to use AMOS on a MultiUserFS partition? Ever wanted to play Worms(DC) on a MultiUserFS partition? And what about all the other progs, which can't get files stored on your MuFS partition? - - Here's the fix..! - - - --- Background: AmigaDOS has a function to lock a file to prevent it from being altered while a program uses it. This lock can be defined in two ways: 1: Shared - for reading - ($fffffffe, or -2 for ordinary humans... :) 2: Exclusive - for writing - ($ffffffff, or -1 for ordinary humans... :) Now there's just one little problem: What about all the other 4294967294 (2³²-2) different possibilities when using a 32bit integer? FastFileSystem assumes that if it isn't an exclusive lock it must be a shared one. MultiUserFileSystem, on the other hand, concludes that if it isn't an exclusive or a shared lock, it simply can't be a valid lock. MuFS's conclusion is perfectly okay, if it haven't been for all those dumb coders with too much lumpy gravy for brains --- FIX YOUR CODE NOW!!! This little patch makes all filesystems act like FFS when dealing with locks. - - - -Martin http://www.amiga.dk/nybo nybo@softhome.net __________________________________________________________________________________ Contents: Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 944 740 21.6% 03-Jul-99 23:48:40 ReLock/ReLock 3291 1708 48.1% 04-Jul-99 23:05:18 ReLock/ReLock.doc 1863 970 47.9% 04-Jul-99 23:04:12 ReLock/ReLock.readme 65 65 0.0% 04-Jul-99 14:36:54 ReLock/ReLock.sig -------- ------- ----- --------- -------- 6163 3483 43.4% 04-Jul-99 23:07:28 4 files