Print this page
NEX-6308 namespace collision for per-share kstats when changing sharesmb property
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-6266 SMB kstats namespace collision for share names longer than 28 characters
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
SMB-50 User-mode SMB server
 Includes work by these authors:
 Thomas Keiser <thomas.keiser@nexenta.com>
 Albert Lee <trisk@nexenta.com>
   1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  14  * Copyright 2017 RackTop Systems.
  15  */
  16 
  17 #include <sys/types.h>
  18 #include <sys/kstat.h>
  19 #include <sys/systm.h>
  20 
  21 /*ARGSUSED*/
  22 kstat_t *








  23 kstat_create_zone(const char *ks_module, int ks_instance, const char *ks_name,
  24     const char *ks_class, uchar_t ks_type, uint_t ks_ndata, uchar_t ks_flags,
  25     zoneid_t ks_zoneid)
  26 {
  27         return (NULL);
  28 }
  29 
  30 /*ARGSUSED*/





  31 kstat_t *
  32 kstat_create(const char *ks_module, int ks_instance, const char *ks_name,
  33     const char *ks_class, uchar_t ks_type, uint_t ks_ndata, uchar_t ks_flags)
  34 {
  35         return (NULL);
  36 }
  37 
  38 /*ARGSUSED*/
  39 void
  40 kstat_named_init(kstat_named_t *knp, const char *name, uchar_t type)
  41 {}
  42 
  43 /*ARGSUSED*/
  44 void
  45 kstat_install(kstat_t *ksp)
  46 {}
  47 
  48 /*ARGSUSED*/
  49 void
  50 kstat_delete(kstat_t *ksp)
  51 {}
  52 
  53 /*ARGSUSED*/
  54 void
  55 kstat_waitq_enter(kstat_io_t *kiop)
  56 {}
  57 
  58 /*ARGSUSED*/
  59 void
  60 kstat_waitq_exit(kstat_io_t *kiop)
  61 {}
  62 
  63 /*ARGSUSED*/
  64 void
  65 kstat_runq_enter(kstat_io_t *kiop)
  66 {}
  67 
  68 /*ARGSUSED*/
  69 void





  70 kstat_runq_exit(kstat_io_t *kiop)
  71 {}
  72 
  73 /*ARGSUSED*/
  74 void
  75 kstat_waitq_to_runq(kstat_io_t *kiop)
  76 {}
  77 
  78 /*ARGSUSED*/
  79 void
  80 kstat_runq_back_to_waitq(kstat_io_t *kiop)




















  81 {}
   1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  14  * Copyright 2017 RackTop Systems.
  15  */
  16 
  17 #include <sys/types.h>
  18 #include <sys/kstat.h>
  19 #include <sys/systm.h>
  20 
  21 /*ARGSUSED*/
  22 kstat_t *
  23 kstat_create(const char *ks_module, int ks_instance, const char *ks_name,
  24     const char *ks_class, uchar_t ks_type, uint_t ks_ndata, uchar_t ks_flags)
  25 {
  26         return (NULL);
  27 }
  28 
  29 /*ARGSUSED*/
  30 kstat_t *
  31 kstat_create_zone(const char *ks_module, int ks_instance, const char *ks_name,
  32     const char *ks_class, uchar_t ks_type, uint_t ks_ndata, uchar_t ks_flags,
  33     zoneid_t ks_zoneid)
  34 {
  35         return (NULL);
  36 }
  37 
  38 /*ARGSUSED*/
  39 void
  40 kstat_delete(kstat_t *ksp)
  41 {}
  42 
  43 /*ARGSUSED*/
  44 kstat_t *
  45 kstat_hold_byname(const char *ks_module, int ks_instance, const char *ks_name,
  46     zoneid_t ks_zoneid)
  47 {
  48         return (NULL);
  49 }
  50 
  51 /*ARGSUSED*/
  52 void
  53 kstat_install(kstat_t *ksp)
  54 {}
  55 
  56 /*ARGSUSED*/
  57 void
  58 kstat_named_init(kstat_named_t *knp, const char *name, uchar_t type)
  59 {}
  60 
  61 /*ARGSUSED*/
  62 void
  63 kstat_named_setstr(kstat_named_t *knp, const char *src)
  64 {}
  65 
  66 /*ARGSUSED*/
  67 void
  68 kstat_rele(kstat_t *ksp)
  69 {}
  70 
  71 /*ARGSUSED*/
  72 void
  73 kstat_runq_back_to_waitq(kstat_io_t *kiop)
  74 {}
  75 
  76 /*ARGSUSED*/
  77 void
  78 kstat_runq_enter(kstat_io_t *kiop)
  79 {}
  80 
  81 /*ARGSUSED*/
  82 void
  83 kstat_runq_enter_time(kstat_io_t *kiop, hrtime_t t)
  84 {}
  85 
  86 /*ARGSUSED*/
  87 void
  88 kstat_runq_exit(kstat_io_t *kiop)
  89 {}
  90 
  91 /*ARGSUSED*/
  92 void
  93 kstat_runq_exit_time(kstat_io_t *kiop, hrtime_t t)
  94 {}
  95 
  96 /*ARGSUSED*/
  97 void
  98 kstat_waitq_enter(kstat_io_t *kiop)
  99 {}
 100 
 101 /*ARGSUSED*/
 102 void
 103 kstat_waitq_enter_time(kstat_io_t *kiop, hrtime_t t)
 104 {}
 105 
 106 /*ARGSUSED*/
 107 void
 108 kstat_waitq_exit(kstat_io_t *kiop)
 109 {}
 110 
 111 /*ARGSUSED*/
 112 void
 113 kstat_waitq_exit_time(kstat_io_t *kiop, hrtime_t t)
 114 {}
 115 
 116 /*ARGSUSED*/
 117 void
 118 kstat_waitq_to_runq(kstat_io_t *kiop)
 119 {}