_HoF_ Blaza
2003-Nov-10 19:49 UTC
[Samba] full size shown before file transfer (via samba) completes?
I noticed this when transferring a 200mb file from my win box to my linux box (that has it's hd shared with samba). I typed ls -l in a term window to see the progress, but it was showing full size even though according to windows the transfer was only around 10-20%, and so on. Why does samba do this? If I transfer with ftp, or ssh transfer, I see the file size growing in shell. _________________________________________________________________ Crave some Miles Davis or Grateful Dead? Your old favorites are always playing on MSN Radio Plus. Trial month free! http://join.msn.com/?page=offers/premiumradio
Andrew Bartlett
2003-Nov-10 22:24 UTC
[Samba] full size shown before file transfer (via samba) completes?
On Tue, 2003-11-11 at 06:49, _HoF_ Blaza wrote:> I noticed this when transferring a 200mb file from my win box to my linux > box (that has it's hd shared with samba). I typed ls -l in a term window to > see the progress, but it was showing full size even though according to > windows the transfer was only around 10-20%, and so on. > > Why does samba do this? If I transfer with ftp, or ssh transfer, I see the > file size growing in shell.If you do a 'du' you should see the disk-space used. I think windows writes to the end of the file, to 'grow' it. Samba doesn't actually cause unix to pre-allocate that space, which is why there is a difference between the two sizes. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20031111/4c349c6a/attachment.bin