patchmldonkey, a multi-networks file-sharing client - Patches: patch #4368, Use sparse files on MinGW/NTFS

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4368: Use sparse files on MinGW/NTFS

Submitter:  z <zet>
Submitted:  Sun 28 Aug 2005 02:53:47 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Assigned to:  None
Open/Closed:  Closed

Jump to the original submission

Fri 02 Sep 2005 10:41:37 PM UTC, comment #6: 

Applied create_file_sparse.diff 2005/09/03

spiralvoice <spiralvoice>
Group administrator
Fri 02 Sep 2005 05:22:13 PM UTC, comment #5: 

Attached a replacement.

(Ideally Unix.openfile would be wrapped though, maybe in the future)

z <zet>
Group Member
Fri 02 Sep 2005 04:16:43 PM UTC, comment #4: 

sparse_option.patch does not look correct to me. 

+void os_ftruncate(OS_FD fd, OFF_T size, value sparse)

+void os_ftruncate(OS_FD fd, OFF_T len, int *sparse)

These lines don't make sense.


+  sparse = Int_val(sparse);

There is a Bool_val define available. 

Also it should be consistent by using bool in ocaml code.

z <zet>
Group Member
Fri 02 Sep 2005 03:53:45 PM UTC, comment #3: 

Please try the attached patch, is provides a new option create_file_sparse true|false

spiralvoice <spiralvoice>
Group administrator
Tue 30 Aug 2005 11:44:42 AM UTC, comment #2: 

Yes, but I don't want to use them.

I want all the needed space to be allocated immediatly.

Adrien <camarade_tux>
Mon 29 Aug 2005 02:53:14 PM UTC, comment #1: 

Applied 2005/08/29

spiralvoice <spiralvoice>
Group administrator
Sun 28 Aug 2005 02:53:47 PM UTC, original submission:  

Tested by creating a 5 gig download on XP (NTFS).   Freespace didn't change..

z <zet>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #9331:  create_file_sparse.diff added by zet (12KiB - application/octet-stream)
file #9329:  sparse_option.patch added by spiralvoice (10KiB - text/plain)
file #9308:  mingw_sparse.diff added by zet (915B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 7 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-02 spiralvoice Open/ClosedOpen Closed
2005-09-02 zet Attached File- Added create_file_sparse.diff, #5129
2005-09-02 spiralvoice Open/ClosedClosed Open
    Attached File- Added sparse_option.patch, #5127
2005-08-29 spiralvoice StatusNone Done
    Open/ClosedOpen Closed
2005-08-28 zet Attached File- Added mingw_sparse.diff, #5101

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code