Print this page
7246 SMF stops dependents in the wrong order
7267 SMF is fast and loose with optional dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/startd/startd.h
          +++ new/usr/src/cmd/svc/startd/startd.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       25 + * Copyright 2016 RackTop Systems.
  25   26   */
  26   27  
  27   28  #ifndef _STARTD_H
  28   29  #define _STARTD_H
  29   30  
  30   31  #include <sys/time.h>
  31   32  #include <librestart.h>
  32   33  #include <librestart_priv.h>
  33   34  #include <libscf.h>
  34   35  #include <libsysevent.h>
↓ open down ↓ 589 lines elided ↑ open up ↑
 624  625  void vertex_send_event(graph_vertex_t *, restarter_event_type_t);
 625  626  void graph_start_if_satisfied(graph_vertex_t *);
 626  627  int vertex_subgraph_dependencies_shutdown(scf_handle_t *, graph_vertex_t *,
 627  628      restarter_instance_state_t);
 628  629  void graph_transition_sulogin(restarter_instance_state_t,
 629  630      restarter_instance_state_t);
 630  631  void graph_transition_propagate(graph_vertex_t *, propagate_event_t,
 631  632      restarter_error_t);
 632  633  void graph_offline_subtree_leaves(graph_vertex_t *, void *);
 633  634  void offline_vertex(graph_vertex_t *);
      635 +boolean_t insubtree_dependents_down(graph_vertex_t *);
 634  636  
 635  637  /* libscf.c - common */
 636  638  char *inst_fmri_to_svc_fmri(const char *);
 637  639  void *libscf_object_create(void *(*)(scf_handle_t *), scf_handle_t *);
 638  640  int libscf_instance_get_fmri(scf_instance_t *, char **);
 639  641  int libscf_fmri_get_instance(scf_handle_t *, const char *, scf_instance_t **);
 640  642  int libscf_lookup_instance(const char *, scf_instance_t *);
 641  643  int libscf_set_reconfig(int);
 642  644  scf_snapshot_t *libscf_get_or_make_running_snapshot(scf_instance_t *,
 643  645      const char *, boolean_t);
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX