Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fmthard/fmthard.c
          +++ new/usr/src/cmd/fmthard/fmthard.c
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27   *      Portions of this source code were provided by International
  28   28   *      Computers Limited (ICL) under a development agreement with AT&T.
  29   29   */
  30   30  
  31   31  /*
  32   32   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  33   33   * Use is subject to license terms.
  34   34   */
  35   35  
  36   36  /*
       37 + * Copyright (c) 2018, Joyent, Inc.
       38 + */
       39 +/*
  37   40   * Sun Microsystems version of fmthard:
  38   41   *
  39   42   * Supports the following arguments:
  40   43   *
  41   44   *      -i              Writes VTOC to stdout, rather than disk
  42   45   *      -q              Quick check: exit code 0 if VTOC ok
  43   46   *      -d <data>       Incremental changes to the VTOC
  44   47   *      -n <vname>      Change volume name to <vname>
  45   48   *      -s <file>       Read VTOC information from <file>, or stdin ("-")
  46   49   *      -u <state>      Reboot after writing VTOC, according to <state>:
↓ open down ↓ 686 lines elided ↑ open up ↑
 733  736                          exit(1);
 734  737  #endif
 735  738                          }
 736  739                  }
 737  740                  if (vtoc->v_part[i].p_size == 0)
 738  741                          continue;       /* Undefined partition */
 739  742                  if ((vtoc->v_part[i].p_start % nblks) ||
 740  743                      (vtoc->v_part[i].p_size % nblks)) {
 741  744                          (void) fprintf(stderr, "\
 742  745  fmthard: Partition %d not aligned on cylinder boundary \n", i);
 743      -                                exit(1);
      746 +                        exit(1);
 744  747                  }
 745  748                  if (vtoc->v_part[i].p_start > fullsz ||
 746  749                      vtoc->v_part[i].p_start +
 747  750                      vtoc->v_part[i].p_size > fullsz) {
 748  751                          (void) fprintf(stderr, "\
 749  752  fmthard: Partition %d specified as %llu sectors starting at %llu\n\
 750  753  \tdoes not fit. The full disk contains %llu sectors.\n",
 751  754                              i, vtoc->v_part[i].p_size,
 752  755                              vtoc->v_part[i].p_start, fullsz);
 753  756  #if defined(sparc)
↓ open down ↓ 189 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX