AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

game/patch/ReLock.lha

Mirror:Random
Showing: i386-aros icongeneric icon
No screenshot available
Short:Makes MuFS (+ others) accept weird locks
Author: nybo at softhome.net (Martin Nybo Andersen)
Uploader:nybo softhome net (Martin Nybo Andersen)
Type:game/patch
Version:1.31
Architecture:m68k-amigaos
Date:1999-07-10
Requires:OS 2.0 (V36)
Download:game/patch/ReLock.lha - View contents
Readme:game/patch/ReLock.readme
Downloads:451

__________________________________________________________________________________

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


Contents of game/patch/ReLock.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  740     944  78.4% -lh5- 0241 Jul  3  1999 ReLock/ReLock
[generic]                 1708    3291  51.9% -lh5- c4cf Jul  4  1999 ReLock/ReLock.doc
[generic]                  970    1863  52.1% -lh5- ac42 Jul  4  1999 ReLock/ReLock.readme
[generic]                   65      65 100.0% -lh0- 9f9c Jul  4  1999 ReLock/ReLock.sig
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    3483    6163  56.5%            Jul  9  1999
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>