[pnfs] BUG in nfs4filelayoutdev:device_create function
Tigran Mkrtchyan
tigran.mkrtchyan at desy.de
Wed Jun 6 16:07:38 EDT 2007
As promised - patch attached.
Basically, it's just replaces in structure nfs4_client field cl_addr
from type 'struct in_addr' to 'struct sockaddr_in'.
Works for me. ASIS ( Gnu :) )
Regards,
Tigran.
Tigran Mkrtchyan wrote:
> Halevy, Benny wrote:
>> Well not every missing feature is a bug...
>> I'd settle on a design bug :)
>
> Agreed.
>
>> Any chance you can draft a solution, try it in your environment,
>> and send a patch?
>>
>
>
> I will try to.
>
> Regards,
> Tigran.
>
>> Benny
>>
>>
>> -----Original Message-----
>> From: pnfs-bounces at linux-nfs.org on behalf of Tigran Mkrtchyan
>> Sent: Wed 2007-06-06 14:01
>> To: pnfs at linux-nfs.org
>> Subject: [pnfs] BUG in nfs4filelayoutdev:device_create function
>>
>>
>> Hi,
>>
>>
>> from my point of view it's a bug:
>>
>> device_create creates a new connection to data server if it's not exist
>> yet. To perform this check only client IP is used, which prevents to
>> have MDS and DS on the same host listening different ports.
>>
>> ______
>> sin.sin_family = AF_INET;
>> sin.sin_addr.s_addr = dev->ip_addr;
>> sin.sin_port = dev->port;
>>
>> clp = server->rpc_ops->get_client(&sin.sin_addr);
>> if (!clp) {
>> err = PTR_ERR(clp);
>> dprintk("%s: failed to create NFS4 client err %d\n",
>> __FUNCTION__, err);
>> goto out;
>> }
>>
>> dprintk("device_create: dev_id=%u, ip=%x, port=%hu, rpcclient %p\n",
>> dev->dev_id, ntohl(dev->ip_addr), ntohs(dev->port), clp->cl_rpcclient);
>>
>> _______
>>
>> Regards,
>> Tigran:
>>
>>
>> ________________________________________________________________________
>> Tigran Mkrtchyan DESY, IT,
>> tigran.mkrtchyan at desy.de Notkestrasse 85,
>> Tel: + 49 40 89983946 Hamburg 22607,
>> Fax: + 49 40 89984429 Germany.
>> _______________________________________________
>> pNFS mailing list
>> pNFS at linux-nfs.org
>> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
>>
>
>
--
________________________________________________________________________
Tigran Mkrtchyan DESY, IT,
tigran.mkrtchyan at desy.de Notkestrasse 85,
Tel: + 49 40 89983946 Hamburg 22607,
Fax: + 49 40 89984429 Germany.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: socket_port_patch.txt
Url: http://linux-nfs.org/pipermail/pnfs/attachments/20070606/d45c44cb/attachment.txt
More information about the pNFS
mailing list