Disk Space Preallocation

This is a place for users to discuss Altap Salamander. Please feel free to ask, answer questions, and express your opinion. Please do not post problems, bug reports or feature requests here.
therube
Posts: 681
Joined: 14 Dec 2006, 06:22

Disk Space Preallocation

Post by therube »

Disk Space Preallocation
Note: Salamander (version 2.5) will not fragment your destination drive because files are prealloacted at the beginning of each operation (Copy/Move/Unpack/...).
http://forum.altap.cz/viewtopic.php?p=8658#8658
How does that work when an overwrite condition exists?
Especially with limited free disk space available?
Is the file space of the file to be overwritten released before the copy/move takes place?
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

Whole target size is allocated at the beginning of operation instead of allocating new (small) fragments. For more information please look at available NTFS documentation (I don't know details).

> Is the file space of the file to be overwritten released before the copy/move takes place?

Try it ;-) (hint: Yes, it is.)
therube
Posts: 681
Joined: 14 Dec 2006, 06:22

Post by therube »

Another question.

Since you are preallocating, does that mean that the space used is contiguous?

(I gather by your reply above, that you're simply performing a system call, & NTFS handles the actual allocation, & it uses its' best means to allocate in contiguous blocks?)
WinXP Pro SP3 or Win7 x86 | SS 2.54
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

The NTFS does preallocation (we only tell the size). If there is not contiguous space available, the destination file will be fragmented.
Post Reply