FRG - Disk Fragmentation Report Utility ======================================= User's Guide ============ FRG is a small task aimed to give the user some information on how fragmented his disks are. For any given FILES-11 device it will list out a frequency count of contiguous free blocks (holes) falling within each of several ranges, and the total number of free blocks for the device. Note that the program usually operates faster than a PIP/FR command. Currently the ranges that FRG considers are:- 1 - 5 blocks 6 - 15 " 16 - 30 " 31 - 50 " 51 - 75 " 76 - 100 " 101 - 200 " 201 - 300 " 301 - 600 " 601 - 1000 " 1001 - 2000 " > 2000 " FRG may be invoked either by:- FRG DDn: or RUN $FRG FRG> DDn: where: DD represents the 2-character ASCII device mnemonic n is a legal unit number between 0 and 7 which must be specified The colon (:) and unit number are optional. Assuming that DDn: is a valid, mounted, Files-11 device then FRG will print out the relevant statistics and exit. The output appears on LUN 2 which may be redirected to a printer. FRG may produce one of the following error messages: 1. FRG - FALURE ON READING BITMAP.SYS An error occurred trying to read the file BITMAP.SYS on the device specified. Most probably the device is not mounted. 2. FRG - ILLEGAL DEVICE The device specified does not exist on the system, or is not a valid Files-11 disk. 3. FRG - NO COMMAND LINE The program tried to prompt for input (after being run from disk) but the QIO failed. FRG - Disk Fragmentation Report Utility ======================================= System Guide ============ The task consists of one simple module. This first gets the MCR command line - prompting the user for input if one was not specified - and parses it to determine the device to be checked. It then assigns a LUN(1) to this device, checks that it is a valid, mountable, Files-11 disk and opens the file [0,0]BITMAP.SYS on it. It then reads through the file checking each bit and calculating the size of each hole. Having done so, it increments the count for that range and proceeds with the next hole. When the file is finished it outputs the statistics report. The program is built by means of the command file FRG.CMD. It is a non-privileged task that uses 3 units and has a taskname of ...FRG.