Spacehog for OS/2
Just Released!

Developer Wing-Fung Yuen just releases Spacehog for OS/2 1.x or above.Hide disk space above 2Gb to avoid neg. freespace. The archive (spacehog.zip, 54.831K) was uploaded on Hobbes.


Wing Yuen just releases Spacehog for OS/2 1.x or above. This soft Hide disk space above 2Gb to avoid neg. freespace: Rewrites holder files when invoked to keep free space below 2Gb. Show total/used/free spaces too. Source code compiled OK with IBM VisualAge C++ v3, Watcom C/C++ v11 & Microsoft C v6. Put into the public domain. Works with 64GB HPFS partitions.

Syntax: SPACE [DriveLetter[:]]

The current drive will be used if no DriveLetter is given. The trailing colon is also optional.

This PUBLIC DOMAIN program helps you maintain the amount of free space in the specified drive to under 2G-1 Bytes.
Thus stopping programs using 32-bit signed integer math from seeing space above 2Gb as negative.

If it can't find the \SPACEHOG directory in the specified partition, it behaves like a run-of-the-mill freespace reporting utility, albeit it can handle disk partitions up to 999,999,999,999 bytes in size. (see Split000())

If it sees the \SPACEHOG directory, which you have to create explicitly, it will create dummy files there as needed to maintain the 2G-1 byte freespace ceiling for that disk partition (you may have to run this twice). The dummy files are named with simple integers, from 0 thru 99999999...

If the amount of reserved space needed is less than 2G-1, it will shrink or expand the size of the \SPACEHOG\0 file instead.

Warning: You use this program and its source code at your own risk. author provide no warranty of any kind. But he *do* welcome bug FIXES/reports via email.

Patches: If you don't have any of the three compilers I used, you can change the \SPACEHOG directory to some place else by patching the 256 byte variable I reserved with a binary editor. Search for this string:

"?:\spacehog"

The '?' will be replaced by the program with the drive letter passed from the command line. Therefore, you need not patch that. Please make sure you end the new directory name with a binary 0 byte. It must not end with a backslash ('\')!!!

CONTACT AUTHOR:

Wing Yuen
wfyuen@ibm.net
74774.357@compuserve.com


@Macarlo, Inc.
@Macarlo's Shareware & Web
OS/2
Java Lobby Member
Java Site Accredited

[TOP] [HOME] [INDEX]