Michael Espinola Jr said: -

> I also assumed it related to the block size, but if that's the case does
it make sense that I am able to defrag those fragments?

"Defragmenting" a file means putting the logically adjacent bits of the file
physically adjacent to each other on the disk.

And Fritz Borgstedt said: -

> If you choose maxbytes to be not on block boundary that would be the
normal behaviour.
> e.g., maxbytes =5000 block=4096

So, the first block (as seen by the OS) is 4096 Bytes in size,, the second
is a whole 4 Bytes. Because this is small, Windows (or other OS) caches it.
By the time it's written to the disk, another file has already been written
in the next available sector (physical disk allocation) hence, the
fragmentation. The two pieces of the file aren't adjacent to each other.

Solution: Redefine your maxbytes as less than or equal to your block size.

E.g. maxbytes =4096

HTH

Kind regards,

William Stucke
ZAnet Internet Services (Pty) Ltd
[EMAIL PROTECTED]
011-465-0700

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to