Print this page
12721 would like svcadm disable -c

@@ -20,11 +20,11 @@
  */
 
 /*
  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2016 RackTop Systems.
- * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright 2020 Joyent, Inc.
  */
 
 #ifndef _LIBSCF_H
 #define _LIBSCF_H
 

@@ -324,10 +324,11 @@
  */
 #define SCF_PROPERTY_ACTIVE_POSTFIX             "active"
 #define SCF_PROPERTY_AUX_STATE                  "auxiliary_state"
 #define SCF_PROPERTY_AUX_FMRI                   "auxiliary_fmri"
 #define SCF_PROPERTY_AUX_TTY                    "auxiliary_tty"
+#define SCF_PROPERTY_COMMENT                    "comment"
 #define SCF_PROPERTY_CONTRACT                   "contract"
 #define SCF_PROPERTY_COREFILE_PATTERN           "corefile_pattern"
 #define SCF_PROPERTY_DEGRADED                   "degraded"
 #define SCF_PROPERTY_DEGRADE_IMMEDIATE          "degrade_immediate"
 #define SCF_PROPERTY_DODUMP                     "do_dump"

@@ -483,10 +484,13 @@
 #define SCF_LIMIT_MAX_NAME_LENGTH       -2000U
 #define SCF_LIMIT_MAX_VALUE_LENGTH      -2001U
 #define SCF_LIMIT_MAX_PG_TYPE_LENGTH    -2002U
 #define SCF_LIMIT_MAX_FMRI_LENGTH       -2003U
 
+
+#define SCF_COMMENT_MAX_LENGTH          (1024)
+
 scf_handle_t *scf_handle_create(scf_version_t);
 
 int scf_handle_decorate(scf_handle_t *, const char *, scf_value_t *);
 #define SCF_DECORATE_CLEAR      ((scf_value_t *)0)