Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshare/nfs/libshare_nfs.c
          +++ new/usr/src/lib/libshare/nfs/libshare_nfs.c
↓ open down ↓ 158 lines elided ↑ open up ↑
 159  159  #define OPT_CKSUM       13
 160  160          {SHOPT_CKSUM, OPT_CKSUM, OPT_TYPE_STRINGSET},
 161  161  #define OPT_NONE        14
 162  162          {SHOPT_NONE, OPT_NONE, OPT_TYPE_ACCLIST},
 163  163  #define OPT_ROOT_MAPPING        15
 164  164          {SHOPT_ROOT_MAPPING, OPT_ROOT_MAPPING, OPT_TYPE_USER},
 165  165  #define OPT_CHARSET_MAP 16
 166  166          {"", OPT_CHARSET_MAP, OPT_TYPE_ACCLIST},
 167  167  #define OPT_NOACLFAB    17
 168  168          {SHOPT_NOACLFAB, OPT_NOACLFAB, OPT_TYPE_BOOLEAN},
      169 +#define OPT_NOHIDE      18
      170 +        {SHOPT_NOHIDE, OPT_NOHIDE, OPT_TYPE_BOOLEAN},
      171 +
 169  172  #ifdef VOLATILE_FH_TEST /* XXX added for testing volatile fh's only */
 170      -#define OPT_VOLFH       18
      173 +#define OPT_VOLFH       19
 171  174          {SHOPT_VOLFH, OPT_VOLFH},
 172  175  #endif /* VOLATILE_FH_TEST */
 173  176          NULL
 174  177  };
 175  178  
 176  179  /*
 177  180   * Codesets that may need to be converted to UTF-8 for file paths.
 178  181   * Add new names here to add new property support. If we ever get a
 179  182   * way to query the kernel for character sets, this should become
 180  183   * dynamically loaded. Make sure changes here are reflected in
↓ open down ↓ 825 lines elided ↑ open up ↑
1006 1009                           */
1007 1010                          export->ex_flags |= EX_CHARMAP;
1008 1011                          break;
1009 1012                  case OPT_NOACLFAB:
1010 1013                          if (value != NULL && (strcasecmp(value, "true") == 0 ||
1011 1014                              strcmp(value, "1") == 0))
1012 1015                                  export->ex_flags |= EX_NOACLFAB;
1013 1016                          else
1014 1017                                  export->ex_flags &= ~EX_NOACLFAB;
1015 1018                          break;
     1019 +                case OPT_NOHIDE:
     1020 +                        if (value != NULL && (strcasecmp(value, "true") == 0 ||
     1021 +                            strcmp(value, "1") == 0))
     1022 +                                export->ex_flags |= EX_NOHIDE;
     1023 +                        else
     1024 +                                export->ex_flags &= ~EX_NOHIDE;
     1025 +
     1026 +                        break;
1016 1027                  default:
1017 1028                          /* have a syntactic error */
1018 1029                          (void) printf(dgettext(TEXT_DOMAIN,
1019 1030                              "NFS: unrecognized option %s=%s\n"),
1020 1031                              name != NULL ? name : "",
1021 1032                              value != NULL ? value : "");
1022 1033                          break;
1023 1034                  }
1024 1035                  if (name != NULL)
1025 1036                          sa_free_attr_string(name);
↓ open down ↓ 2026 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX