From 381fca764ee64e0e65db07d3261a9ce940d65d6e Mon Sep 17 00:00:00 2001 From: David Teigland Date: Jan 11 2011 20:28:24 +0000 Subject: sanlock: tidying help text --- diff --git a/daemon/main.c b/daemon/main.c index 1bd2bfc..ad19f76 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1917,45 +1917,56 @@ static void print_usage(void) printf("\n"); printf("client status\n"); printf(" -D debug: print extra internal state for debugging\n"); + printf("\n"); printf("client log_dump\n"); + printf("\n"); printf("client shutdown\n"); + printf("\n"); printf("client set_host -i -h \n"); printf(" -i host_id of local host\n"); printf(" -h [:] host_id lease area\n"); + printf("\n"); printf("client command -l LEASE -c \n"); - printf(" -n change num_hosts in leases when acquired\n"); + printf(" -n change num_hosts in leases when acquired\n"); printf(" -l LEASE resource lease description, see below\n"); printf(" -c run command with args, -c must be final option\n"); + printf("\n"); printf("client acquire -p -l LEASE\n"); printf(" -p process that lease should be added for\n"); printf(" -l LEASE resource lease description, see below\n"); + printf("\n"); printf("client release -p -r \n"); printf(" -p process whose lease should be released\n"); printf(" -r resource name of a previously acquired lease\n"); + printf("\n"); printf("client migrate -p -t \n"); printf(" -p process whose leases should be migrated\n"); printf(" -t target host_id\n"); + printf("\n"); printf("client setowner -p \n"); printf(" -p process whose leases should be owned\n"); printf("\n"); - printf("direct init [-n -h ] [-l LEASE ...]\n"); + printf("direct init -n [-h ] [-l LEASE ...]\n"); printf(" -a use async io (1 yes, 0 no)\n"); - printf(" -n max host id that will be able to acquire the lease,\n"); + printf(" -n max host_id that will be able to acquire a lease,\n"); printf(" and number of sectors that are read when paxos is run\n"); - printf(" -m max number of hosts the disk area will support\n"); + printf(" -m max number of hosts the disk area will support\n"); printf(" (default %d)\n", DEFAULT_MAX_HOSTS); printf(" -h [:] host_id lease area\n"); printf(" -l LEASE resource lease description, see below\n"); + printf("\n"); printf("direct dump [:] [options]\n"); printf(" -D debug: print extra info for debugging\n"); printf(" -a use async io (1 yes, 0 no)\n"); + printf("\n"); printf("direct acquire|release|migrate -i -l LEASE ...\n"); printf(" -a use async io (1 yes, 0 no)\n"); - printf(" -n change num_hosts in leases when acquired\n"); + printf(" -n change num_hosts in leases when acquired\n"); printf(" -i host_id of local host\n"); printf(" -g host_id generation of local host\n"); printf(" -t target host_id to acquire/release/migrate\n"); printf(" -l LEASE resource lease description, see below\n"); + printf("\n"); printf("direct acquire_id|release_id -i -d -o -t \n"); printf(" -a use async io (1 yes, 0 no)\n"); printf(" -i host_id of local host\n");