Short: Dump handler names off of mountlist file Author: megacz@usa.com Uploader: megacz usa com Type: util/cli Version: 0.2 Requires: 68000+/os2.04+ Architecture: m68k-amigaos dmlnames-0.2 -------------- --- 'dmlnames' allows to grep in 'mountlist' and dump handler names, so that you can perform all sort of magic on them. --- NEWS: [01-Aug-2009] 0.2 Way better, way cleaner! --- NOTES: [*] Requires 68000(no FPU)+, OS 2.04+, 8192+ bytes of free memory [*] Proggy has 'lformat' facility so you can use it like 'list' command. [*] Proggy features two filters that can be activated by feeding 'range' with value higher than 0. First filter, the 'area filter' helps to determine if certain partition fits the desired range. Second filter, the 'drive filter' keeps an eye on the partition size versus drive size. " EXAMPLE: FileSystem = L:SmartFileSystem Device = scsi.device /* 2 */ Unit = 0 /* 2 */ Priority = 1 Flags = 0 Surfaces = 16 /* 1 */ BlockSize = 512 /* 1 (or SectorSize) */ BlocksPerTrack = 63 /* 1 (or SectorsPerTrack) */ Reserved = 2 Interleave = 0 LowCyl = 16081 HighCyl = 39548 /* 1 and 2 */ StackSize = 5120 Buffers = 256 BufMemType = 0 GlobVec = -1 DosType = 0x53465300 MaxTransfer = 0x1FE00 Mask = 0xFFFFFFE Activate = 1 # " 1 - entries needed for the 'area filter' to work. 2 - entries needed for the 'drive filter' to work. [*] Proggy is aware of the comments. --- HELP: *** template: dmlnames [l=lformat/k] [r=range/n] [[~]n=names/f] - mountlist file. [l=lformat/k] - there are seven options: '%c' - allows to check if handler is already in the system(this is a switch) '%e' - will turn itself into handler name (without colon - you have to add it) '%E' - in conjunction with '%r' will print errors only(switch) '%f' - will turn itself into input filename '%k' - kill all requesters while handling the 'lformat' line(this is a switch) '%o' - when used with '%r' will print the original output from the command(sw.) '%r' - runs the 'lformat' line(this is also switch thus wont appear in the output) [r=range/n] - partitions who exceed this value(GiB) counting from 0 for each entry, wont be listed [[~]n=names/f] - comma spearated names of handlers that should be included or (~)ex-luded(handlers must not contain colons) --- EXAMPLES: ; mount everything from the mountlist if it is not mounted dmlnames devs:mountlist lformat="%c%rmount %e: from=%f" ; suppose you use 'nsdpatch' only under 3.0 and you have just ; attached the drive with SFS filesystems that require TD64, if ; you mount them then your Miggy will most likely hang, so you ; may like to perform check like this to avoid such situation dmlnames devs:mountlist range=4 lformat="%rmount %e: from=%f" ; suppose you transferred your system to another(smaller) hardrive ; and you generally use TD64(128 GiB) and you didnt change mountlists ; to reflect new hard drive layout, now if you use SFS and decide to ; mount such partition then requester will popup telling you that ; the partitition you are about to mount does not fit the actual ; hard drive size, so to avoid that use 'range' again dmlnames devs:mountlist range=128 lformat="%rmount %e: from=%f" ; dont mount 'RAD:' and 'PC0:' dmlnames devs:mountlist lformat="%rmount %e: from=%f" ~RAD,~PC0 ; mount 'PC0:' only dmlnames devs:mountlist lformat="%rmount %e: from=%f" PC0 ; addbuffers to certain partitions dmlnames devs:mountlist lformat="%raddbuffers %e: 128" HD1,HD2,HD3 ; report filesystems that dont work(use after mounting) dmlnames devs:mountlist lformat="%E%k%rcd %e:" --- megacz@usa.com