Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/autofs/auto_vnops.c
          +++ new/usr/src/uts/common/fs/autofs/auto_vnops.c
↓ open down ↓ 81 lines elided ↑ open up ↑
  82   82  static void auto_inactive(vnode_t *, cred_t *, caller_context_t *);
  83   83  static int auto_rwlock(vnode_t *, int, caller_context_t *);
  84   84  static void auto_rwunlock(vnode_t *vp, int, caller_context_t *);
  85   85  static int auto_seek(vnode_t *vp, offset_t, offset_t *, caller_context_t *);
  86   86  
  87   87  static int auto_trigger_mount(vnode_t *, cred_t *, vnode_t **);
  88   88  
  89   89  vnodeops_t *auto_vnodeops;
  90   90  
  91   91  const fs_operation_def_t auto_vnodeops_template[] = {
  92      -        VOPNAME_OPEN,           { .vop_open = auto_open },
  93      -        VOPNAME_CLOSE,          { .vop_close = auto_close },
  94      -        VOPNAME_GETATTR,        { .vop_getattr = auto_getattr },
  95      -        VOPNAME_SETATTR,        { .vop_setattr = auto_setattr },
  96      -        VOPNAME_ACCESS,         { .vop_access = auto_access },
  97      -        VOPNAME_LOOKUP,         { .vop_lookup = auto_lookup },
  98      -        VOPNAME_CREATE,         { .vop_create = auto_create },
  99      -        VOPNAME_REMOVE,         { .vop_remove = auto_remove },
 100      -        VOPNAME_LINK,           { .vop_link = auto_link },
 101      -        VOPNAME_RENAME,         { .vop_rename = auto_rename },
 102      -        VOPNAME_MKDIR,          { .vop_mkdir = auto_mkdir },
 103      -        VOPNAME_RMDIR,          { .vop_rmdir = auto_rmdir },
 104      -        VOPNAME_READDIR,        { .vop_readdir = auto_readdir },
 105      -        VOPNAME_SYMLINK,        { .vop_symlink = auto_symlink },
 106      -        VOPNAME_READLINK,       { .vop_readlink = auto_readlink },
 107      -        VOPNAME_FSYNC,          { .vop_fsync = auto_fsync },
 108      -        VOPNAME_INACTIVE,       { .vop_inactive = auto_inactive },
 109      -        VOPNAME_RWLOCK,         { .vop_rwlock = auto_rwlock },
 110      -        VOPNAME_RWUNLOCK,       { .vop_rwunlock = auto_rwunlock },
 111      -        VOPNAME_SEEK,           { .vop_seek = auto_seek },
 112      -        VOPNAME_FRLOCK,         { .error = fs_error },
 113      -        VOPNAME_DISPOSE,        { .error = fs_error },
 114      -        VOPNAME_SHRLOCK,        { .error = fs_error },
 115      -        VOPNAME_VNEVENT,        { .vop_vnevent = fs_vnevent_support },
 116      -        NULL,                   NULL
       92 +        { VOPNAME_OPEN,         { .vop_open = auto_open } },
       93 +        { VOPNAME_CLOSE,        { .vop_close = auto_close } },
       94 +        { VOPNAME_GETATTR,      { .vop_getattr = auto_getattr } },
       95 +        { VOPNAME_SETATTR,      { .vop_setattr = auto_setattr } },
       96 +        { VOPNAME_ACCESS,       { .vop_access = auto_access } },
       97 +        { VOPNAME_LOOKUP,       { .vop_lookup = auto_lookup } },
       98 +        { VOPNAME_CREATE,       { .vop_create = auto_create } },
       99 +        { VOPNAME_REMOVE,       { .vop_remove = auto_remove } },
      100 +        { VOPNAME_LINK,         { .vop_link = auto_link } },
      101 +        { VOPNAME_RENAME,       { .vop_rename = auto_rename } },
      102 +        { VOPNAME_MKDIR,        { .vop_mkdir = auto_mkdir } },
      103 +        { VOPNAME_RMDIR,        { .vop_rmdir = auto_rmdir } },
      104 +        { VOPNAME_READDIR,      { .vop_readdir = auto_readdir } },
      105 +        { VOPNAME_SYMLINK,      { .vop_symlink = auto_symlink } },
      106 +        { VOPNAME_READLINK,     { .vop_readlink = auto_readlink } },
      107 +        { VOPNAME_FSYNC,        { .vop_fsync = auto_fsync } },
      108 +        { VOPNAME_INACTIVE,     { .vop_inactive = auto_inactive } },
      109 +        { VOPNAME_RWLOCK,       { .vop_rwlock = auto_rwlock } },
      110 +        { VOPNAME_RWUNLOCK,     { .vop_rwunlock = auto_rwunlock } },
      111 +        { VOPNAME_SEEK,         { .vop_seek = auto_seek } },
      112 +        { VOPNAME_FRLOCK,       { .error = fs_error } },
      113 +        { VOPNAME_DISPOSE,      { .error = fs_error } },
      114 +        { VOPNAME_SHRLOCK,      { .error = fs_error } },
      115 +        { VOPNAME_VNEVENT,      { .vop_vnevent = fs_vnevent_support } },
      116 +        { NULL,                 { NULL } }
 117  117  };
 118  118  
 119  119  
 120  120  
 121  121  /* ARGSUSED */
 122  122  static int
 123  123  auto_open(vnode_t **vpp, int flag, cred_t *cred, caller_context_t *ct)
 124  124  {
 125  125          vnode_t *newvp;
 126  126          int error;
↓ open down ↓ 1412 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX