Print this page
NEX-9755 Race in libshare can cause zfs set sharenfs to fail
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshare/common/libshare_impl.h
          +++ new/usr/src/lib/libshare/common/libshare_impl.h
↓ open down ↓ 77 lines elided ↑ open up ↑
  78   78          uint64_t (*sa_features)(void);
  79   79          int     (*sa_get_transient_shares)(sa_handle_t); /* add transients */
  80   80          int     (*sa_notify_resource)(sa_resource_t);
  81   81          int     (*sa_rename_resource)(sa_handle_t, sa_resource_t, char *);
  82   82          int     (*sa_run_command)(int, int, char **); /* proto specific */
  83   83          int     (*sa_command_help)();
  84   84          int     (*sa_delete_proto_section)(char *);
  85   85  };
  86   86  
  87   87  struct sa_proto_handle {
       88 +        int                     sa_ref_count;
  88   89          int                     sa_num_proto;
  89   90          char                    **sa_proto;
  90   91          struct sa_plugin_ops    **sa_ops;
  91   92  };
  92   93  
  93   94  typedef struct propertylist {
  94   95          struct propertylist     *pl_next;
  95   96          int                     pl_type;
  96   97          union propval {
  97   98              sa_optionset_t      pl_optionset;
↓ open down ↓ 90 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX