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

Re: [Linux-cluster] Determining name of current cluster



On Thu, Oct 28, 2004 at 08:52:01PM +0800, David Teigland wrote:
> On Thu, Oct 28, 2004 at 08:12:28AM -0400, Jeff wrote:
> > Is ccs_get() the correct API to use to determine the name of the
> > current cluster?
> 
> You could but the most correct method would be to get this from the
> cluster manager (cnxman-socket.h until there's a libcman).  In the kernel
> it's kcl_cluster_name(), but it looks like we haven't exported an
> equivalent to userspace yet.

I'm working on both, they should be ready RSN.

If you're desperate, the quickest way of getting the cluster name into userland
is to read /proc/cluster/status.

patrick


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