public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* dlm: master - dlm_tool: use NEWEXCL flag
@ 2009-01-13 19:43 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-01-13 19:43 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=49b55f2fd8a6f40fdf770be0e939a51bf17390f8
Commit:        49b55f2fd8a6f40fdf770be0e939a51bf17390f8
Parent:        7033d102e06ef8e8dfc948c6607be0aaa5e48b82
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Tue Jan 13 13:36:40 2009 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Tue Jan 13 13:42:09 2009 -0600

dlm_tool: use NEWEXCL flag

Use the DLM_LSFL_NEWEXCL flag that was added in 2.6.28.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 dlm/tool/main.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/dlm/tool/main.c b/dlm/tool/main.c
index 40fea07..d055b69 100644
--- a/dlm/tool/main.c
+++ b/dlm/tool/main.c
@@ -123,9 +123,7 @@ static void print_usage(void)
 	printf("Options:\n");
 	printf("  -n               Show all node information in ls\n");
 	printf("  -d <n>           Resource directory off/on (0/1) in join, default 0\n");
-#ifdef LINUX2628rc
 	printf("  -e <n>           Exclusive create off/on (0/1) in join, default 0\n");
-#endif
 	printf("  -f <n>           FS memory allocation off/on (0/1) in join, default 0\n");
 	printf("  -m <mode>        Permission mode for lockspace device (octal), default 0600\n");
 	printf("  -M               Print MSTCPY locks in lockdump\n"
@@ -333,10 +331,8 @@ static char *flag_str(uint32_t flags)
 	if (flags & DLM_LSFL_NODIR)
 		strcat(join_flags, "NODIR ");
 
-#ifdef LINUX2628rc
 	if (flags & DLM_LSFL_NEWEXCL)
 		strcat(join_flags, "NEWEXCL ");
-#endif
 
 	if (flags & DLM_LSFL_FS)
 		strcat(join_flags, "FS ");
@@ -352,10 +348,8 @@ void do_join(char *name)
 	if (!opt_dir)
 		flags |= DLM_LSFL_NODIR;
 
-#ifdef LINUX2628rc
 	if (opt_excl)
 		flags |= DLM_LSFL_NEWEXCL;
-#endif
 
 	if (opt_fs)
 		flags |= DLM_LSFL_FS;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-13 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 19:43 dlm: master - dlm_tool: use NEWEXCL flag David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).