Path: utzoo!attcan!uunet!amgraf!brian386!news From: news@brian386.UUCP (Wm. Brian McCane) Newsgroups: comp.sources.wanted Subject: Re: Disk unfragmentation utility Message-ID: <418@brian386.UUCP> Date: 16 Mar 89 22:15:44 GMT References: <182@syteke.UUCP> <9078@b-tech.ann-arbor.mi.us> Reply-To: news@brian386.UUCP (Wm. Brian McCane) Organization: Harmon Electronics, Inc Grain Valley, MO Lines: 34 In article <9078@b-tech.ann-arbor.mi.us> zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) writes: >In article <182@syteke.UUCP> jim@syteke.UUCP (Jim Sanchez) writes: >>Now that the world has fsanalyze to see how fragmented their disks >>are when are we going to see a utility to unfragment them in place. > >The author of fsanalyze (sdti!mjy) has been working on such a >program. Last I heard, it was going to be available for sale at >reasonable prices. > >An unfragmented disk does make a big difference. > Okay, here goes. I have a unfragmenter which is modified from the fsanalyze programs. It is, I think, bullet proof, but also slooow. I use it on my own system (uPort SYSV/386 3.0e) and have no problems (now ;-). I borrowed heavily from the fsanalyze sources, and really only wrote a small portion of code myself. The method I used will unfragment a file, but does NOT compact the disk (intentionally). I have it set up to allow the user to selectively unfragment files from a list which is generated by the fsanalyze code. It then attempts to make multiple copies of the file and selects the least fragmented. I am sure there is a better way (look through the free block list maybe?). Anyways, if anyone is interested in a copy of it, send me a message requesting it, or if someone tells me how, I can submit it to a group. NOTE: This program may be very SYSVish in my mods, I've never used BSD. brian -- Wm. Brian McCane | Life is full of doors that won't open | when you knock, equally spaced amid Disclaimer: I don't think they even | those that open when you don't want admit I work here. | them to. - Roger Zelazny "Blood of Amber"