Print this page
4833 Remove volrmmount
4845 rm(u)mount don't always print mount/unmount errors
4846 HAL partition names don't match real parition names
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/rmformat/rmf_slice.c
          +++ new/usr/src/cmd/rmformat/rmf_slice.c
↓ open down ↓ 9 lines elided ↑ open up ↑
  10   10   * See the License for the specific language governing permissions
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20      - */
  21      -/*
       20 + *
       21 + *
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2014 Andrew Stormont.
  24   26   */
  25   27  
  26   28  /*
  27   29   * rmf_slice.c :
  28   30   *      This file contains the functions for parsing a slice file
  29   31   *      for rmformat.
  30   32   */
  31   33  
  32   34  #include <sys/types.h>
  33   35  #include <ctype.h>
↓ open down ↓ 842 lines elided ↑ open up ↑
 876  878          int32_t num_backup = 0;
 877  879          diskaddr_t backup_size = 0;
 878  880          struct part_struct {
 879  881                  diskaddr_t start;
 880  882                  diskaddr_t end;
 881  883                  int32_t num;
 882  884          } part[NDKMAP];
 883  885          diskaddr_t min_val;
 884  886          int32_t min_slice, num_slices;
 885  887          diskaddr_t media_size;
 886      -        uint32_t cyl_size;
      888 +        uint32_t cyl_size = 0;
 887  889          int sparc_style = 0;    /* sparc_style handling ? */
 888  890          struct fdisk_info fdisk;
 889  891          int sol_part;
 890  892          int total_parts = 0;
 891  893  
 892  894  #ifdef sparc
 893  895          sparc_style = 1;
 894  896  #endif /* sparc */
 895  897  
 896  898          if ((med_info.sm_media_type == SM_FLOPPY) ||
↓ open down ↓ 774 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX