Short: Some tools for optimizing SFS file systems Author: peoyli@algonet.se (P-O Yliniemi) Uploader: peoyli algonet se (P-O Yliniemi) Type: disk/optim Version: 0.8 Requires: SFS 1.84 (http://www.xs4all.nl/~hjohn/SFS184.lha) Architecture: m68k-amigaos; ppc-powerup This is two tools I wrote, mainly for use with the SFS file system by John Hendrikx. The archive also contains a modified version of SFSdefragmentGUI, which opens a much smaller, inactive window, and exits when it's done defragmenting. To use these scripts, put every SFS command inside a 'SFS' directory in c: (SFSCheck and this version of SFSdefragmentGUI is the ones really needed). Also, put SFSTool and SFSOptimize inside this directory. --- SFSTool --- This script acts like a front-end for the SFSCheck and SFSdefragmentGUI commands. It can be used to empty the .recycled directory, create a file list for the partition, check and defragment the file system. Every function of the script is optional, so you can have it do exactly nothing for you if you wish to (but I guess that's not a good reason for downloading it). Usage: SFSTool DEVICE/A,CLEAN/S,NOCHECK/S,NODEFRAG/S,LIST/S DEVICE - Device to perform the actions on (required) CLEAN - Remove the files in the .recycled directory NOCHECK - Do not run SFSCheck on the device NODEFRAG - Do not run SFSDefragmentGUI on the device LIST - Generate a list of all the files and store as :.filelist Default action is to check and defragment the partition. For best performance, this command uses the GeekGadgets 'find' command to create the file list, but it falls back on using 'list' if you do not have 'find'. --- SFSOptimize --- This script optimizes the file system to make finding the icons faster, otherwise it does about the same thing as the SFSTool script. This script requires 'find', 'tar' and 'sh' that comes with the GeekGadgets distribution. Usage: SFSOptimize DEVICE/A,LIST/S,ICONDIR/K DEVICE - Device to perform the actions on (required) LIST - Generate a list of all the files and store as :.filelist ICONDIR - Temporary location for icons, will otherwise be the work drive Optimization is done by archiving together all the icons on the partition (using a 'find' and 'tar' combination). When the archiving is complete, the archive created is moved to the destination drive (or the directory specified by the ICONDIR keyword). All the icons on the partition is then deleted, and the .recycled directory is wiped out. After this comes the first defragmentation of the drive, followed by putting back the icons on the drive and then defragmenting again. WARNING: If something goes wrong, or if you interrupt the whole process, you will have no icons on the drive, but you will be able to find the 'icons.tar' file in the drive's root directory, or in the location you specified. To extract the icons into place again, change to the root directory of the drive and enter tar xf [full path to icons archive]icons.tar It should work, but it's not my fault if it doesn't. This command can also generate a file list, like SFSTool. The list is generated after the .recycled directory has been wiped out for the first time. --- SFSDoAll --- A sample script on how to do everything specified on the command line on all the drives. Modify as needed to suit your device names. Only for SFSTool. --- History --- 22-Dec-2000: Added a PPC version of SFSdefragmentGUI. I really don't know if it is faster, but it is an PPC version anyway. The IDE disks will, no matter what I do, eat up all the 68k CPU time anyway. 21-Dec-2000: First Aminet release ------------------- Other programs by me (first 'real' page update since 1996, so check it out!): http://www.algonet.se/~peoyli /PeO