From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/dlm lib/libdlm.h man/dlm_query.3
Date: 11 Jul 2007 14:00:27 -0000 [thread overview]
Message-ID: <20070711140027.2643.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: pcaulfield at sourceware.org 2007-07-11 14:00:27
Modified files:
dlm/lib : libdlm.h
dlm/man : dlm_query.3
Log message:
Fix typo (in .h file too!) that refers to nodes rather than locks on queues.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.8&r2=1.8.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/man/dlm_query.3.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.2&r2=1.1.2.3
--- cluster/dlm/lib/libdlm.h 2004/11/08 14:06:08 1.8
+++ cluster/dlm/lib/libdlm.h 2007/07/11 14:00:26 1.8.2.1
@@ -101,9 +101,9 @@
struct dlm_resinfo {
int rsi_length;
- int rsi_grantcount; /* No. of nodes on grant queue */
- int rsi_convcount; /* No. of nodes on convert queue */
- int rsi_waitcount; /* No. of nodes on wait queue */
+ int rsi_grantcount; /* No. of locks on grant queue */
+ int rsi_convcount; /* No. of locks on convert queue */
+ int rsi_waitcount; /* No. of locks on wait queue */
int rsi_masternode; /* Master for this resource */
char rsi_name[DLM_RESNAME_MAXLEN]; /* Resource name */
char rsi_valblk[DLM_LVB_LEN]; /* Master's LVB contents, if applicable
--- cluster/dlm/man/Attic/dlm_query.3 2007/07/11 13:22:29 1.1.2.2
+++ cluster/dlm/man/Attic/dlm_query.3 2007/07/11 14:00:27 1.1.2.3
@@ -70,9 +70,9 @@
struct gdlm_resinfo
{
int rsi_length;
- int rsi_grantcount; /* No. of nodes on grant queue */
- int rsi_convcount; /* No. of nodes on convert queue */
- int rsi_waitcount; /* No. of nodes on wait queue */
+ int rsi_grantcount; /* No. of locks on grant queue */
+ int rsi_convcount; /* No. of locks on convert queue */
+ int rsi_waitcount; /* No. of locks on wait queue */
int rsi_masternode; /* Master node for this resource */
char rsi_name[DLM_RESNAME_MAXLEN]; /* Resource name */
char rsi_valblk[DLM_LVB_LEN]; /* Master's LVB contents, if applicable */
@@ -139,7 +139,7 @@
.SH EXAMPLE
.nf
-This example display all other locks that are held against the resource.
+This example display all other locks that are held against the resource, up to a maximum of 100.
#define MAX_QUERY_LOCKS 100
@@ -152,10 +152,9 @@
qinfo.gqi_resinfo = &resinfo;
qinfo.gqi_lockinfo = malloc(sizeof(struct dlm_lockinfo) * MAX_QUERY_LOCKS);
qinfo.gqi_locksize = MAX_QUERY_LOCKS;
- lksb.sb_lvbptr = (char *)&qinfo;
status = dlm_query_wait(&tmplksb,
- DLM_QUERY_QUEUE_ALL | DLM_QUERY_LOCKS_ALL,
+ DLM_QUERY_QUEUE_ALL | DLM_QUERY_LOCKS_ALL,
&qinfo);
if (status)
perror("Query failed");
@@ -167,6 +166,7 @@
printf("lockinfo: convcount = %d\n", qi->gqi_resinfo->rsi_convcount);
printf("lockinfo: waitcount = %d\n", qi->gqi_resinfo->rsi_waitcount);
printf("lockinfo: masternode = %d\n", qi->gqi_resinfo->rsi_masternode);
+ printf("\n");
/* Dump all the locks */
for (i = 0; i < qi->gqi_lockcount; i++)
reply other threads:[~2007-07-11 14:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070711140027.2643.qmail@sourceware.org \
--to=pcaulfield@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.