2010/11/13 Jeff Layton <jlayton@xxxxxxxxx>: > > I don't think this patch deals correctly with servers that are > listening on RFC1001_PORT but not CIFS_PORT. With two mounts to the > same server that don't specify a port, you'll end up with two sockets, > right? Yes, you are right. I don't think that it is a big problem im comparison with what we have today. Today we have totally broken code - when I have two servers on the one host with different ports (e.x. the first on one host and the second on the second but can be accesed through the first with ssh forwarded port) and user wants to mount both. In results, user mount only the first share twice - it can break a lot of things! > > Also, the logic in match_address is getting to be rather convoluted. It > might be good to break that out into a match_port function. > > ipv4_connect and ipv6_connect ought to be sharing a lot of code. It > would be good to do some cleanup here and try to consolidate these > functions more than they are today. > > I envision a function that just handles setting up the socket and > leaves the caller to determine the port to use. Also, breaking out the > RFC1001 stuff into a separate function would be good too. > You are absolutely right. I agree with you about copy-and-past code for ipv4(v6)_connect function - good chance for cleanup. I am going to do it as soon as I finished with strict cache mode. But for a while - I don't think we can leave such a bug I described above. -- Best regards, Pavel Shilovsky. -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html