cancel
Showing results for 
Search instead for 
Did you mean: 

data transfer mode in samba

Kaps_2
Regular Advisor

data transfer mode in samba

Hello,

We are facing data corruption while copying the data using samba share. In what mode samba data is transferred. ( Is it in binary mode as in ftp?). I read somewhere that its in RAW mode. Any idea on this ?

Thanks,
Kaps
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: data transfer mode in samba

Shalom,

Data corruption issues could be due to a number of factors.

I believe data transfer mode depends on type of data.

http://www.meteck.org/samba.htm

Determining the data transfer mode probably will not help.

Updating the samba software, installing bug fixes or finding a problem on the logs is a better path.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor

Re: data transfer mode in samba

"Core mode" and "Raw mode" in SEP's link refer to data transfer block size and other details of the SMB/CIFS protocol.

Samba does not have FTP-style data transfer modes (binary/ASCII). In FTP terms, Samba transfers everything in "binary mode", always.

There are several things that must be taken into account when transferring files between Windows and Unix-like systems:

* In ASCII text files, the standard line terminator in the Windows world is the CR+LF combination; in Unix systems, LF is used alone.
- When a text file created on a Windows system is transferred to Unix-style system, there may appear to be garbage ^M characters (control-M, aka CR) in the end of every line.
- Conversely, a Windows system does not understand Unix line terminators and may assume that a Unix-style text file contains just one long line of text.

* Different character sets: in Windows, text files typically use a locale-dependent character set (ISO-8859-1 aka ISO Latin-1 in US and Western Europe), but may use DOS codepages (CP 850 or CP 437) in some cases.
If Euro currency symbol is used, Windows may use CP1252.
Linux/Unix systems increasingly tend to use UTF-8 by default, but may use a different character set if configured.
If a proper conversion is not applied, typically all non-ASCII characters will be corrupted.

MK
MK
Kaps_2
Regular Advisor

Re: data transfer mode in samba

Hi Matti,

Thanks for you reply however is there any supporting DOC which states that SAMBA always transfers in binary mode.Please let me know if there is any doc.

Thanks,
Kaps