Print this page
6879933 Let SMBFS support extensible attributes per. PSARC 2007/315

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_vfsops.c
          +++ new/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_vfsops.c
↓ open down ↓ 590 lines elided ↑ open up ↑
 591  591          vfsp->vfs_dev   = smbfs_dev;
 592  592          vfs_make_fsid(&vfsp->vfs_fsid, smbfs_dev, smbfsfstyp);
 593  593          vfsp->vfs_data  = (caddr_t)smi;
 594  594          vfsp->vfs_fstype = smbfsfstyp;
 595  595          vfsp->vfs_bsize = MAXBSIZE;
 596  596          vfsp->vfs_bcount = 0;
 597  597  
 598  598          smi->smi_vfsp   = vfsp;
 599  599          smbfs_zonelist_add(smi);        /* undo in smbfs_freevfs */
 600  600  
      601 +        /* PSARC 2007/227 VFS Feature Registration */
      602 +        vfs_set_feature(vfsp, VFSFT_XVATTR);
      603 +        vfs_set_feature(vfsp, VFSFT_SYSATTR_VIEWS);
      604 +
 601  605          /*
 602  606           * Create the root vnode, which we need in unmount
 603  607           * for the call to smbfs_check_table(), etc.
 604  608           * Release this hold in smbfs_unmount.
 605  609           */
 606  610          rtnp = smbfs_node_findcreate(smi, "\\", 1, NULL, 0, 0,
 607  611              &smbfs_fattr0);
 608  612          ASSERT(rtnp != NULL);
 609  613          rtnp->r_vnode->v_type = VDIR;
 610  614          rtnp->r_vnode->v_flag |= VROOT;
↓ open down ↓ 407 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX