preallocated file size

Richard Sharpe sharpe at
Fri Feb 4 16:14:25 GMT 2000


At 12:19 PM 2/5/00 +1100, Maulik Desai wrote:
>> Terry McCoy wrote:
>> > Hmmm...  I wonder how they handle incomplete file transfers, but
>> >          that's a potential problem for another day :>)
>> 	I suspect they'll fail on the write to the intended end of
>> 	file, allowing the copy program (in this case file manager,
>> 	~= NT explorer) to stop quickly.  I fear that subsequent
>> 	writes aren't checked...
>A while back I had observed that Samba didn't seem to handle incomplete 
>file transfers properly. When I used explorer to write a file on samba 
>server (drag & drop) and canceled it before it was completely written, the 
>(corrupt) file still existed in the directory instead of being deleted. It
>appears that NT handles this correctly by deleting the file if it 
>was canceled before completely written.

Ummm, what do you mean by not completely written.  In particular, what
operations did the client use to implement drag and drop?

If NT is deleting a file because the client stoppend sending SMBwrite
requests and aborted the connection, I would be very surprised and unhappy.

If you have a trace, we could get a better idea of what is going on.

I suspect that the client is deleting the file.

>Can someone please verify this? if this is true, then this is a bug 
>in Samba - right?
>I'm using Samba 2.0.5a on RH Linux 6.0; client was NT 4.0 w/s.

Richard Sharpe, sharpe at, Master Linux Administrator :-),
Samba (Team member,, Ethereal (Team member,
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course

More information about the samba-technical mailing list