Print this page
4833 Remove volrmmount
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/rmvolmgr/vold.c
          +++ new/usr/src/cmd/rmvolmgr/vold.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   * Vold compatibility for rmvolmgr: emulate old commands as well as
  28   30   * action_filemgr.so to notify legacy apps via /tmp/.removable pipes.
  29   31   * A lot of this code is copied verbatim from vold sources.
  30   32   *
  31   33   * Here's the original description of action_filemgr.so:
  32   34   *
  33   35   * action_filemgr.so - filemgr interface routines for rmmount
↓ open down ↓ 89 lines elided ↑ open up ↑
 123  125  };
 124  126  
 125  127  static const char *result_strings[] = {
 126  128          "FALSE",
 127  129          "TRUE"
 128  130  };
 129  131  
 130  132  #define NOTIFY_DIR      "/tmp/.removable"       /* dir where filemgr looks */
 131  133  #define NOTIFY_NAME     "notify"                /* named pipe to talk over */
 132  134  
 133      -static void     volrmmount_usage();
 134  135  static void     volcheck_usage();
 135  136  static int      vold_action(struct action_arg *aap);
 136  137  static void     vold_update_mountpoints(struct action_arg *aap);
 137  138  static char     *not_mountable(struct action_arg *aa);
 138  139  static int      create_one_notify_file(char *fstype,
 139  140                                  char *mount_point,
 140  141                                  char *notify_file,
 141  142                                  char *raw_partitionp,
 142  143                                  char *reason,
 143  144                                  char *symdev);
↓ open down ↓ 943 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX