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

Re: [Linux-cluster] GFS patch: cdsl with cmans nodeid



Mark Hlawatschek wrote:
> Hi,
> 
> we created a patch that enables GFS to use the CMANs nodeid value to create 
> CDSLs. Therefore, we created the parameter @nodeid.
> 
> You can download the patch at: http://www.open-sharedroot.org. 
> We wanted to have a nodeid cdsl for the shared root environment. What is your 
> opinion about the @nodeid parameter ?


> 3. Changes:
> 3.1 cman-kernel
> Added API function kcl_get_my_nodeid(void) which returns the nodeid as int.

You don't need to add an API to get the current nodeid. Simply call
  kcl_get_node_by_id(0, &node)
and it will fill in details of the current node.

> Added line to proc/cluster/status output. E.g: "Node ID: 4"

Yes, that probably should be included :)

-- 

patrick


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