X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvsched.c;h=162c3884a5b1443b309f3af9200c33bb035a3831;hb=517fb954f46091a78f471435b7f284668138a2da;hp=358d139b298bfb1dcf869272ae63f09a0dd09b2b;hpb=bd9b1a68c9b4855e2dab03fc2b84e174446cbef5;p=util-vserver.git diff --git a/src/vsched.c b/src/vsched.c index 358d139..162c388 100644 --- a/src/vsched.c +++ b/src/vsched.c @@ -1,6 +1,7 @@ // $Id$ --*- c -*-- // Copyright (C) 2004 Enrico Scholz +// Copyright (C) 2006 Daniel Hokka Zakrisson // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -96,13 +97,13 @@ struct sched_opt { }; #define FOPT(NAME,MASK,FIELD) { #NAME, MASK, offsetof(struct vc_set_sched, FIELD) } static struct sched_opt FILE_OPTIONS[] = { - FOPT(fill-rate, VC_VXSM_FILL_RATE, fill_rate), - FOPT(interval, VC_VXSM_INTERVAL, interval), - FOPT(tokens, VC_VXSM_TOKENS, tokens), - FOPT(tokens-min, VC_VXSM_TOKENS_MIN, tokens_min), - FOPT(tokens-max, VC_VXSM_TOKENS_MAX, tokens_max), - FOPT(prio-bias, VC_VXSM_PRIO_BIAS, priority_bias), - FOPT(priority-bias, VC_VXSM_PRIO_BIAS, priority_bias), + FOPT(fill-rate, VC_VXSM_FILL_RATE, fill_rate), + FOPT(interval, VC_VXSM_INTERVAL, interval), + FOPT(tokens, VC_VXSM_TOKENS, tokens), + FOPT(tokens-min, VC_VXSM_TOKENS_MIN, tokens_min), + FOPT(tokens-max, VC_VXSM_TOKENS_MAX, tokens_max), + FOPT(prio-bias, VC_VXSM_PRIO_BIAS, priority_bias), + FOPT(priority-bias, VC_VXSM_PRIO_BIAS, priority_bias), FOPT(fill-rate2, VC_VXSM_FILL_RATE2|VC_VXSM_IDLE_TIME, fill_rate2), FOPT(interval2, VC_VXSM_INTERVAL2|VC_VXSM_IDLE_TIME, interval2), FOPT(cpu-id, VC_VXSM_CPU_ID, cpu_id), @@ -119,9 +120,25 @@ showHelp(int fd, char const *cmd, int res) WRITE_MSG(fd, "Usage:\n "); WRITE_STR(fd, cmd); WRITE_MSG(fd, - " [--xid ] [--fill-rate ] [--interval ] [--tokens ] [--tokens-min ] [--tokens-max ] [--prio-bias ] [--] [ *]\n" + " [--xid ] * [--dir ] [--] [ *]\n" "\n" - "Please report bugs to " PACKAGE_BUGREPORT "\n"); + "Options:\n" + " --fill-rate \n" + " --interval \n" + " --tokens \n" + " --tokens-min \n" + " --tokens-max \n" + " --prio-bias \n" + " --fill-rate2 \n" + " --interval2 \n" + " --cpu-id \n" + " --bucket-id \n" + " --idle-time ... set the idle time flag; this is required for\n" + " all updates to the scheduler to keep it enabled\n" + " --force ... force update of all per-CPU schedulers now\n" + " --dir ... read settings from \n" + " --missingok ... do not fail when does not exist\n" + "\nPlease report bugs to " PACKAGE_BUGREPORT "\n"); exit(res); } @@ -133,6 +150,7 @@ showVersion() "vsched " VERSION " -- modifies scheduling parameters\n" "This program is part of " PACKAGE_STRING "\n\n" "Copyright (C) 2003,2004 Enrico Scholz\n" + "Copyright (C) 2006 Daniel Hokka Zakrisson\n" VERSION_COPYRIGHT_DISCLAIMER); exit(0); }