Print this page
cstyle sort of updates
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs4_srv.c
          +++ new/usr/src/uts/common/fs/nfs/nfs4_srv.c
↓ open down ↓ 505 lines elided ↑ open up ↑
 506  506  extern size_t   strlcpy(char *dst, const char *src, size_t dstsize);
 507  507  
 508  508  extern void     rfs4_free_fs_locations4(fs_locations4 *);
 509  509  
 510  510  #ifdef  nextdp
 511  511  #undef nextdp
 512  512  #endif
 513  513  #define nextdp(dp)      ((struct dirent64 *)((char *)(dp) + (dp)->d_reclen))
 514  514  
 515  515  static const fs_operation_def_t nfs4_rd_deleg_tmpl[] = {
 516      -        VOPNAME_OPEN,           { .femop_open = deleg_rd_open },
 517      -        VOPNAME_WRITE,          { .femop_write = deleg_rd_write },
 518      -        VOPNAME_SETATTR,        { .femop_setattr = deleg_rd_setattr },
 519      -        VOPNAME_RWLOCK,         { .femop_rwlock = deleg_rd_rwlock },
 520      -        VOPNAME_SPACE,          { .femop_space = deleg_rd_space },
 521      -        VOPNAME_SETSECATTR,     { .femop_setsecattr = deleg_rd_setsecattr },
 522      -        VOPNAME_VNEVENT,        { .femop_vnevent = deleg_rd_vnevent },
 523      -        NULL,                   NULL
      516 +        { VOPNAME_OPEN,         { .femop_open = deleg_rd_open } },
      517 +        { VOPNAME_WRITE,        { .femop_write = deleg_rd_write } },
      518 +        { VOPNAME_SETATTR,      { .femop_setattr = deleg_rd_setattr } },
      519 +        { VOPNAME_RWLOCK,       { .femop_rwlock = deleg_rd_rwlock } },
      520 +        { VOPNAME_SPACE,        { .femop_space = deleg_rd_space } },
      521 +        { VOPNAME_SETSECATTR,   { .femop_setsecattr = deleg_rd_setsecattr } },
      522 +        { VOPNAME_VNEVENT,      { .femop_vnevent = deleg_rd_vnevent } },
      523 +        { NULL,                 { NULL } }
 524  524  };
 525  525  static const fs_operation_def_t nfs4_wr_deleg_tmpl[] = {
 526      -        VOPNAME_OPEN,           { .femop_open = deleg_wr_open },
 527      -        VOPNAME_READ,           { .femop_read = deleg_wr_read },
 528      -        VOPNAME_WRITE,          { .femop_write = deleg_wr_write },
 529      -        VOPNAME_SETATTR,        { .femop_setattr = deleg_wr_setattr },
 530      -        VOPNAME_RWLOCK,         { .femop_rwlock = deleg_wr_rwlock },
 531      -        VOPNAME_SPACE,          { .femop_space = deleg_wr_space },
 532      -        VOPNAME_SETSECATTR,     { .femop_setsecattr = deleg_wr_setsecattr },
 533      -        VOPNAME_VNEVENT,        { .femop_vnevent = deleg_wr_vnevent },
 534      -        NULL,                   NULL
      526 +        { VOPNAME_OPEN,         { .femop_open = deleg_wr_open } },
      527 +        { VOPNAME_READ,         { .femop_read = deleg_wr_read } },
      528 +        { VOPNAME_WRITE,        { .femop_write = deleg_wr_write } },
      529 +        { VOPNAME_SETATTR,      { .femop_setattr = deleg_wr_setattr } },
      530 +        { VOPNAME_RWLOCK,       { .femop_rwlock = deleg_wr_rwlock } },
      531 +        { VOPNAME_SPACE,        { .femop_space = deleg_wr_space } },
      532 +        { VOPNAME_SETSECATTR,   { .femop_setsecattr = deleg_wr_setsecattr } },
      533 +        { VOPNAME_VNEVENT,      { .femop_vnevent = deleg_wr_vnevent } },
      534 +        { NULL,                 { NULL } }
 535  535  };
 536  536  
 537  537  int
 538  538  rfs4_srvrinit(void)
 539  539  {
 540  540          timespec32_t verf;
 541  541          int error;
 542  542          extern void rfs4_attr_init();
 543  543          extern krwlock_t rfs4_deleg_policy_lock;
 544  544  
↓ open down ↓ 9499 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX