windows copy file on same vs diff partition

 et's compare to the two operations. First, copying a file from one partition to another:

  1. The source is opened.

  2. The destination is opened/created.

  3. Space is allocated for the destination.

  4. Every byte of file data is read from the source and written to the destination.

  5. The destination file is closed.

  6. The source file handle is set to unlink on close.

  7. The source file handle is closed, unlinking the file.

  8. Since that is (typically) the last reference to the source file data, the source file data has to be made free.

Now, copying a file from one folder to another on the same partition.

  1. The source is opened.

  2. A new hard link is created to the source file in the destination directory.

  3. The handle to the source file is set to unlink on close.

  4. The source handle is closed, unlinking it. The source file is still linked to the destination directory, so no free space needs to be changed.

     

    https://superuser.com/questions/424650/why-copying-files-in-one-partition-is-much-faster-than-copying-files-to-another

Comments

Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

fix idm integration on chrome

Hidden Wiki