Return to BSD News archive
#! rnews 2229 bsd Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!newsserver.jvnc.net!newsreader.jvnc.net!news From: Mark Neill <neill@trenton.edu> Subject: Re: Filesystem fragmentation Content-Type: text/plain; charset=us-ascii To: Tim Smith <tzs@coho.halcyon.com> Message-ID: <31151A16.524C07ED@trenton.edu> Sender: news@tigger.jvnc.net (Zee News Genie) Content-Transfer-Encoding: 7bit Organization: Trenton State College References: <4f1j28$et1@news1.halcyon.com> Mime-Version: 1.0 Date: Sun, 4 Feb 1996 20:41:58 GMT X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.3.59 i486) Lines: 45 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:13669 comp.os.linux.misc:86022 Tim Smith wrote: > > My understanding is that both FreeBSD (and BSD in general) and Linux > filesystems are resistant to becoming fragmented. Still, suppose I > ran a program that did the following: > > 1. Note the amount of space free, divide this by 20, > and then create, one at a time, 20 files of that size, > making sure to actually write data to the files so that > there will no no holes. > > 2. Truncate each file down to 1 block. > > 3. Repeat the following several times: > > a. Pick one of the 20 files and append to it until > all but one block of free space is left. > > b. Pick one of the other files and append one block > to it. > > c. Truncate the first file back to where it was before > step "a". > > Will this achieve high fragmentation on FreeBSD and/or Linux? > > --Tim Smith I have a question: Suppose I did this: 1. Decided I wanted to trash people's hard drives. 2. Couldn't figure out how to do it. 3. Repeated the following several times: a. Posted to comp.os.linux.xxx to ask if they knew how b. Waited for an answer to see if anyone would tell me. c. When the flames started, changes newsgroups. Get a life, unless you have a plan for somehow distributing a binary of your little hrive-crashing program, it will never go anywhere.