Matt, I was looking at this a little on the MSDN site and found this information (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/ setfilevaliddata.asp). It mentions here that all files have a "File Size", "Allocation Size", as well as valid data length. It isn't clear, however, how functions such as the copy "grab" the right amount of space for the copied file (copied files are usually less fragmented if large enough free blocks exist). I'm not sure if it is a call to create, then move the pointer, then set end of file...seems convoluted. I wonder how the copy feature does it.
Not sure if this helps at all or not. I couldn't find anything else in the create file functions that allow a parameter to define the file size. Rob -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt McCutchen Sent: Monday, August 14, 2006 5:33 PM To: Rob Bosch Cc: rsync@lists.samba.org Subject: Re: File fragmentation On 8/13/06, Rob Bosch <[EMAIL PROTECTED]> wrote: > Is this something that should be implemented at the rsync level or cygwin > level? It would seem that is the opportunity to "pre-allocate" is available > it would be useful to make sure space is available for the new file. Only rsync knows how much data it plans to write, so rsync would have to make some sort of call to provide the eventual file size. I don't know anything about the Windows call for preallocating space or whether it is available through Cygwin. If I get a chance, I will try to find out. Matt -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html