smb (samba) mount resolved.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just an fyi to the list,

problem: couldn't mount smb on a fc11 desktop to a fc10 smb server.

https://bugzilla.redhat.com/show_bug.cgi?id=506574
(has more details)

I did the following to test/patch the problem: (note that the patch
may be included in the 2.6.31 kernel)

followed howto on patching kernel, worked like a charm:
http://fedoraproject.org/w/index.php?title=Building_a_custom_kernel&printable=yes

applied patch:
Signed-off-by: Simo Leone <simo@xxxxxxxxxxxxx>
---
 fs/cifs/connect.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 0344b26..6462071 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1506,14 +1506,14 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
               cFYI(1, ("attempting ipv6 connect"));
               /* BB should we allow ipv6 on port 139? */
               /* other OS never observed in Wild doing 139 with v6 */
+               sin_server6->sin6_port = htons(volume_info->port);
               memcpy(&tcp_ses->addr.sockAddr6, sin_server6,
                       sizeof(struct sockaddr_in6));
-               sin_server6->sin6_port = htons(volume_info->port);
               rc = ipv6_connect(tcp_ses);
       } else {
+               sin_server->sin_port = htons(volume_info->port);
               memcpy(&tcp_ses->addr.sockAddr, sin_server,
                       sizeof(struct sockaddr_in));
-               sin_server->sin_port = htons(volume_info->port);
               rc = ipv4_connect(tcp_ses);
       }
       if (rc < 0) {
--
1.6.3.1

in /home/<somebody>/rpmbuild/SPECS/kernel.spec:

%define buildid .local
and
%define with_firmware  %{?_with_firmware:  0} %{?!_with_firmware:  1}

(this was needed to get the firmware rpm and gen a unique buildid)



rpm -ivh kernel-2*  kernel-firm*


I know this maybe confusing, but thought I should post it.

thanks,
-- Gary

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux