Quantcast
Channel: Admins Goodies » cifs
Viewing all articles
Browse latest Browse all 10

How efficient is a file move on the same fileshare?

$
0
0

Question

From a windows208r2 client connected to a SMB/CIFS share, I move a file from one directory to another directory on the same network share.

Does windows send a “move” command to the share, or does windows copy the bytes locally, write them to the new location on the same share in the new location, and then delete the original file?

One would be much more efficient than the other, just don’t know how “smart” the client/server is for this type of share.

Asked by Andrew Theken

Answer

The short answer is: Meh.

On a file “Move” (AKA Cut and Paste) between the same share it will simply change the index on the file server (pretty much instant).

Unfortunately when you try to move between two different shares (Even on the same file server) or do a “copy” operation it does pull the data through the client PC (slow).

On any “move” operation is does copy each file before deleting the source file, so at least that’s good =)

Easy to test all of this by connecting to a share with a large folder and trying it out.

Answered by Thildemar

Viewing all articles
Browse latest Browse all 10

Trending Articles