Print this page
6110 dumpadm usage string should mention '-d none'

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dumpadm/main.c
          +++ new/usr/src/cmd/dumpadm/main.c
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28  #include <unistd.h>
  29   29  #include <stdlib.h>
  30   30  #include <stdio.h>
  31   31  #include <string.h>
  32   32  
  33   33  #include "dconf.h"
  34   34  #include "minfree.h"
  35   35  #include "utils.h"
  36   36  
  37   37  static const char USAGE[] = "\
  38      -Usage: %s [-enuy] [-c kernel | curproc | all ] [-d dump-device | swap ]\n\
  39      -        [-m min {k|m|%%} ] [-s savecore-dir] [-r root-dir] [-z on|off]\n";
       38 +Usage: %s [-enuy] [-c kernel | curproc | all ]\n\
       39 +        [-d dump-device | swap | none ] [-m min {k|m|%%} ] [-s savecore-dir]\n\
       40 +        [-r root-dir] [-z on|off]\n";
  40   41  
  41   42  static const char OPTS[] = "einuyc:d:m:s:r:z:";
  42   43  
  43   44  static const char PATH_DEVICE[] = "/dev/dump";
  44   45  static const char PATH_CONFIG[] = "/etc/dumpadm.conf";
  45   46  
  46   47  int
  47   48  main(int argc, char *argv[])
  48   49  {
  49   50          const char *pname = getpname(argv[0]);
↓ open down ↓ 184 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX