LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-03-2008, 12:20 AM   #1
dwmorton
LQ Newbie
 
Registered: Apr 2004
Location: Illinois, USA
Distribution: Fedora 12 & 13, x86_64
Posts: 20

Rep: Reputation: 0
Directory entries truncated in NAS smb share when accessed by FC9


I have a home network with a combination of FC8 and FC9 machines and a TeraStation Pro NAS. The FC8 and FC9 machines can access each others smb shares with no problems. The FC8 machines can access the NAS smb share with no problems.

I am seeing very strange behavior when FC9 machines try to access the NAS smb share. If I use Nautilus, konqueror, firefox or smbclient, I can access the NAS smb share, but the last character is truncated from each directory entry.

Mounting the NAS smb share using the "mount" command produces the correct result with correct directory entries.

Any ideas on what is going on?
 
Old 08-03-2008, 02:39 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Since you see the problem at the end of strings representing file names, there seesms to be some difference between the way the two systems are interpreting file name string lengths or end of string characters.

Have you checked the vendor's website for know issues or updates, or the Samba mailing lists?
 
Old 08-03-2008, 09:53 AM   #3
dwmorton
LQ Newbie
 
Registered: Apr 2004
Location: Illinois, USA
Distribution: Fedora 12 & 13, x86_64
Posts: 20

Original Poster
Rep: Reputation: 0
I've searched samba bugzilla and redhat bugzilla. No mention of this problem anywhere. Is there a way I can focus this a bit...

What is the difference between accessing a samba share via nautilus/firefox/konqueror using an address line starting with "smb://" and accessing the share via "mount -t cifs"? What packages are involved in each method?
 
Old 08-03-2008, 12:18 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
There are two protocols that can be used to access Windows shares: smb and cifs. The later wants to be the preferred method for accessing remote Windows shares.

The smb:// protocol URI component indicates that the SMB protcol is used to access the resources on the server.

The -t cifs mount command option indicates that the CIFS protocol is to be used (instead of SMB). Linux has both cifs and smbfs as kernel file syste modules.

This article will explain why there are two protocols: http://www.samba.org/cifs/
 
Old 08-03-2008, 07:21 PM   #5
dwmorton
LQ Newbie
 
Registered: Apr 2004
Location: Illinois, USA
Distribution: Fedora 12 & 13, x86_64
Posts: 20

Original Poster
Rep: Reputation: 0
I learned a great deal from your reference. Armed with this information, I searched redhat bugzilla more intelligently and found that my issue is a reported bug:

https://bugzilla.redhat.com/show_bug.cgi?id=446657

There is apparently a patch in the works.

Thank you!
 
Old 08-03-2008, 07:53 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Ah, nice sleuthing!

And indeed, that patch shows it is an off-by-one error during file name character conversion:

Code:
 	if (dest_len && dest) {
 		/* Did we already process the terminating zero ? */
-		if (dest[dest_len-1] != 0) {
-			dest[dest_len-1] = 0;
+		if (dest[dest_len] != 0) {
+			dest[dest_len] = 0;
You can apply the patch and rebuild the smbclie if this is affecting you greatly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connect to smb share on NAS sycamorex Linux - Networking 3 07-30-2008 12:09 PM
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 04:49 AM
directory permissions on mounted smb share in fstab glok_twen Linux - Server 2 02-18-2008 07:13 AM
NAS or SMB server antivirus6613 Linux - Server 1 03-25-2007 02:29 PM
have added a routing path for a different network but samba share can't be accessed.. rishipandit007 Linux - Software 1 02-27-2007 11:00 AM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration