Directory entries truncated in NAS smb share when accessed by FC9
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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?
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.