Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-24 Thread shunter
Yes, I did.  I tried them separately and together.  Made no difference. 
Any text file copied to a SFU share has each byte replaced with a null 
character.   Any PDF (or zip or exe) file copied fails to copy.  I'm going 
to turn debug up to about 10 and stare at it some more.  Perhaps I can 
find a test case that will tell me something.

S.H.H.



Volker Lendecke volker.lende...@sernet.de 
03/23/2009 03:05 PM
Please respond to
volker.lende...@sernet.de


To
shun...@ddci.com
cc
samba@lists.samba.org
Subject
Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.






On Mon, Mar 23, 2009 at 02:58:05PM -0700, shun...@ddci.com wrote:
 The Windows 2003 machine is a raid array data server that provides both 
 Windows and UNIX/Linux shares (NFS).  Some users prefer a Windows 
browser 
 for copying or editing files.  An older Samba on an older Linux machine 
 (Mandrake 10.2) provided this service until recently.

Did you try the two options I mentioned?

Volker




This message is intended only for the use of the individual or entity to which 
it is addressed. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this message is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the sender 
of this E-Mail by return E-Mail or by telephone. -- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-24 Thread Volker Lendecke
On Tue, Mar 24, 2009 at 06:30:29AM -0700, shun...@ddci.com wrote:
 Yes, I did.  I tried them separately and together.  Made no difference. 
 Any text file copied to a SFU share has each byte replaced with a null 
 character.   Any PDF (or zip or exe) file copied fails to copy.  I'm going 
 to turn debug up to about 10 and stare at it some more.  Perhaps I can 
 find a test case that will tell me something.

What we'd need then is sniffs of the relevant network
segments taken at the exact same time, plus some time for
possible deferred caching.

Ah, one more hint: You might want to try the syncops vfs
module.

Volker


pgpM1tLPCsMlc.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-24 Thread Kums
On Tue, Mar 24, 2009 at 7:30 AM, shun...@ddci.com wrote:

 Yes, I did.  I tried them separately and together.  Made no difference.
 Any text file copied to a SFU share has each byte replaced with a null
 character.   Any PDF (or zip or exe) file copied fails to copy.  I'm going
 to turn debug up to about 10 and stare at it some more.  Perhaps I can
 find a test case that will tell me something.


Is sendfile option enabled in smb.conf? If yes, can you try disabling it
(use sendfile = no), restart SMB, and run your verification tests?

Thanks,
-Kums
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-24 Thread shunter
No, sendfile is not enabled.  The default is false, and I haven't changed 
it.

S.H.H.



Kums kumaran.raja...@gmail.com 
03/24/2009 08:25 AM

To
shun...@ddci.com
cc
volker.lende...@sernet.de, samba@lists.samba.org
Subject
Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.







On Tue, Mar 24, 2009 at 7:30 AM, shun...@ddci.com wrote:
Yes, I did.  I tried them separately and together.  Made no difference.
Any text file copied to a SFU share has each byte replaced with a null
character.   Any PDF (or zip or exe) file copied fails to copy.  I'm going
to turn debug up to about 10 and stare at it some more.  Perhaps I can
find a test case that will tell me something.


Is sendfile option enabled in smb.conf? If yes, can you try disabling it 
(use sendfile = no), restart SMB, and run your verification tests?

Thanks,
-Kums



This message is intended only for the use of the individual or entity to which 
it is addressed. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this message is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the sender 
of this E-Mail by return E-Mail or by telephone. 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-23 Thread shunter
I am running a Windows 2003 Server with Microsoft Services for UNIX (SFU) 
installed which is serving NFS shares to a Redhat Enterprise Workstation 
v5 Linux machine which is running Samba 3.0.33-3.7.el5.  There is also a 
Solaris 5.6 workstation serving NFS shares.  All of these are mounted on 
the RHEL machine and are visible to Samba.  I can read and copy anything 
from any share using Windows Explorer to my Windows XP Pro machine.  I can 
copy to and/or write anything I want on the Solaris shares.  If I attempt 
to write a PDF file to any of the SFU shares, the write fails with a 
Windows message that either the file is busy (which it is not) or the 
share does not have write permissions (which it does).  If I attempt to 
copy a text file to this same share using Windows Explorer, the copy 
succeeds.  However the contents of the file is lost leaving only a stream 
of null characters.  If I attempt to edit a text file on any of the SFU 
shares, the contents of the file is replaced by a bunch of null 
characters.  Yet, if I use Cygwin on the same XP Pro machine to copy the 
same text file from the same Windows directory to the same SFU share via 
Samba, the copy works just fine.

Do SFU shares need to be mounted with some special switch on the RHEL 
machine for Samba to be able to write to them?  Is there some obscure 
Samba configuration switch that I've missed?

Any help that might point me in the right direction would be appreciated. 
Thank you.

Stephen Hunter
Systems Administrator
DDC-I, Inc.
shun...@ddci.com


This message is intended only for the use of the individual or entity to which 
it is addressed. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this message is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the sender 
of this E-Mail by return E-Mail or by telephone. 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-23 Thread Volker Lendecke
On Mon, Mar 23, 2009 at 02:06:34PM -0700, shun...@ddci.com wrote:
 Do SFU shares need to be mounted with some special switch on the RHEL 
 machine for Samba to be able to write to them?  Is there some obscure 
 Samba configuration switch that I've missed?

Wow, that's a twisted net of mounts. To get you right:

You use the SFU NFS server to mount -t nfs on a RHEL box.
You use Samba to re-export this to a Windows XP machine.
You get file corruption when writing to that samba export.

Right?

Question: Why don't you just mount directly from W2k3? And,
you might just try posix locking = no and kernel oplocks
= no in your smb.conf.

Volker


pgpYQPaN4AawN.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-23 Thread shunter
The Windows 2003 machine is a raid array data server that provides both 
Windows and UNIX/Linux shares (NFS).  Some users prefer a Windows browser 
for copying or editing files.  An older Samba on an older Linux machine 
(Mandrake 10.2) provided this service until recently.

S.H.H.



Volker Lendecke volker.lende...@sernet.de 
03/23/2009 02:38 PM
Please respond to
volker.lende...@sernet.de


To
shun...@ddci.com
cc
samba@lists.samba.org
Subject
Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.






On Mon, Mar 23, 2009 at 02:06:34PM -0700, shun...@ddci.com wrote:
 Do SFU shares need to be mounted with some special switch on the RHEL 
 machine for Samba to be able to write to them?  Is there some obscure 
 Samba configuration switch that I've missed?

Wow, that's a twisted net of mounts. To get you right:

You use the SFU NFS server to mount -t nfs on a RHEL box.
You use Samba to re-export this to a Windows XP machine.
You get file corruption when writing to that samba export.

Right?

Question: Why don't you just mount directly from W2k3? And,
you might just try posix locking = no and kernel oplocks
= no in your smb.conf.

Volker




This message is intended only for the use of the individual or entity to which 
it is addressed. If the reader of this message is not the intended recipient, 
or the employee or agent responsible for delivering the message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this message is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the sender 
of this E-Mail by return E-Mail or by telephone. -- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Text File Corruption Writing from Windows to Linux NFS Share.

2009-03-23 Thread Volker Lendecke
On Mon, Mar 23, 2009 at 02:58:05PM -0700, shun...@ddci.com wrote:
 The Windows 2003 machine is a raid array data server that provides both 
 Windows and UNIX/Linux shares (NFS).  Some users prefer a Windows browser 
 for copying or editing files.  An older Samba on an older Linux machine 
 (Mandrake 10.2) provided this service until recently.

Did you try the two options I mentioned?

Volker


pgp08ny8yQV1X.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba