Print this page
195 Need replacement for nfs/lockd+klm
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Jeremy Jones <jeremy@delphix.com>
Reviewed by: Jeff Biseda <jbiseda@delphix.com>


  73 
  74 /*
  75  * AUTOFS Property Group Names.
  76  */
  77 #define SMF_PG_AUTOFS           ((const char *)"com.oracle.autofs,props")
  78 #define AUTOFS_PROPS_PGNAME     ((const char *)"autofs-props")
  79 
  80 #define AUTOFS_FMRI             "svc:/system/filesystem/autofs"
  81 #define AUTOFS_DEFAULT_FMRI     "svc:/system/filesystem/autofs:default"
  82 #define MAXDIGITS       32
  83 
  84 /*
  85  * ERRORS
  86  */
  87 #define SMF_OK                  0
  88 #define SMF_SYSTEM_ERR          -1
  89 #define STATE_INITIALIZING      1
  90 #define SMF_NO_PERMISSION       2
  91 #define SMF_NO_PGTYPE           3
  92 

  93 extern int nfs_smf_get_prop(char *, char *, char *, scf_type_t, char *, int *);
  94 extern int fs_smf_get_prop(smf_fstype_t,  char *, char *, char *, scf_type_t,
  95         char *, int *);
  96 extern int nfs_smf_set_prop(char *, char *, char *, scf_type_t, char *);
  97 extern int fs_smf_set_prop(smf_fstype_t, char *, char *,
  98     char *, scf_type_t, char *);
  99 extern int autofs_smf_set_prop(char *, char *, char *, scf_type_t, char *);
 100 extern int autofs_smf_get_prop(char *, char *, char *, scf_type_t,
 101     char *, int *);
 102 extern void fs_smf_fini(fs_smfhandle_t *);
 103 extern boolean_t string_to_boolean(const char *);
 104 
 105 #ifdef  __cplusplus
 106 }
 107 #endif
 108 
 109 #endif  /* _SMFCFG_H */


  73 
  74 /*
  75  * AUTOFS Property Group Names.
  76  */
  77 #define SMF_PG_AUTOFS           ((const char *)"com.oracle.autofs,props")
  78 #define AUTOFS_PROPS_PGNAME     ((const char *)"autofs-props")
  79 
  80 #define AUTOFS_FMRI             "svc:/system/filesystem/autofs"
  81 #define AUTOFS_DEFAULT_FMRI     "svc:/system/filesystem/autofs:default"
  82 #define MAXDIGITS       32
  83 
  84 /*
  85  * ERRORS
  86  */
  87 #define SMF_OK                  0
  88 #define SMF_SYSTEM_ERR          -1
  89 #define STATE_INITIALIZING      1
  90 #define SMF_NO_PERMISSION       2
  91 #define SMF_NO_PGTYPE           3
  92 
  93 extern int nfs_smf_get_iprop(char *, int *, char *, scf_type_t, char *);
  94 extern int nfs_smf_get_prop(char *, char *, char *, scf_type_t, char *, int *);
  95 extern int fs_smf_get_prop(smf_fstype_t,  char *, char *, char *, scf_type_t,
  96         char *, int *);
  97 extern int nfs_smf_set_prop(char *, char *, char *, scf_type_t, char *);
  98 extern int fs_smf_set_prop(smf_fstype_t, char *, char *,
  99     char *, scf_type_t, char *);
 100 extern int autofs_smf_set_prop(char *, char *, char *, scf_type_t, char *);
 101 extern int autofs_smf_get_prop(char *, char *, char *, scf_type_t,
 102     char *, int *);
 103 extern void fs_smf_fini(fs_smfhandle_t *);
 104 extern boolean_t string_to_boolean(const char *);
 105 
 106 #ifdef  __cplusplus
 107 }
 108 #endif
 109 
 110 #endif  /* _SMFCFG_H */