Discussion Locked

Copy across network

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I have a winnt4.0 network. When I'm copying a file across the network to another machine.I noticed that the file on the machine I'm copying to shows as already being there with the proper file size. But the copy is still running. Is this because it's allocating the space ahead of time before the whole file is copied?.... Thanks in advance

5 replies

by ann777

Generally when copying a file across the network, the file name will appear with a size of 0 before the contents are copied over. This is standard.

If you actually see both files in both locations with the file size, then the copy should be finished (or maybe was done before???).

The copy process is usually a procoss of creating the file, making a copy, and then writing closing information to the file. It does not actaully allocate space per se, it just reads and writes and places pointers for access in the FAT (file allocation table)... or NTFS (New Technology File System).

by mckaytech

I have to disagree with the answer above based on my own observations. Just to make sure I wasn't hallucinating, I just tried a file copy across an NT network and the full file size (542,702,345) appeared on the target server as soon as the file header was read as the transfer was starting. However, the space available on the target drive was not updated until the transfer was complete.

I don't believe the space is being pre-allocated because if you run out of space, the transfer doesn't crash until you actually reach the point in the transfer where there is no more space on the target drive. It seems to me if it were pre-allocated, file transfers would always crash at the beginning rather than some point in the middle or near the end.

I believe that what is happening is that the initial directory listing on the target drive is based on the information in the file header, subject to correction when the transfer is complete. While the directory entry is there from the start, the entire file is not until the transfer actually completes the copy of the last byte and the file allocation table has been updated with the list of clusters that make up the file.

paul

This discussion is closed to new replies.