Lines Matching refs:shspec
121 smb_sm_lookupint(struct smb_vcspec *vcspec, struct smb_sharespec *shspec, in smb_sm_lookupint() argument
129 vcspec->shspec = shspec; in smb_sm_lookupint()
160 if (shspec) { in smb_sm_lookupint()
161 error = (int)smb_vc_lookupshare(vcp, shspec, scred, in smb_sm_lookupint()
181 smb_sm_lookup(struct smb_vcspec *vcspec, struct smb_sharespec *shspec, in smb_sm_lookup() argument
193 error = smb_sm_lookupint(vcspec, shspec, scred, vcpp); in smb_sm_lookup()
207 if (shspec == NULL) in smb_sm_lookup()
209 error = smb_share_create(vcp, shspec, scred, &ssp); in smb_sm_lookup()
742 smb_share_create(struct smb_vc *vcp, struct smb_sharespec *shspec, in smb_share_create() argument
748 uid_t uid = shspec->owner; in smb_share_create()
749 gid_t gid = shspec->group; in smb_share_create()
760 error = smb_vc_lookupshare(vcp, shspec, scred, &ssp); in smb_share_create()
774 ssp->ss_name = smb_strdup(shspec->name); in smb_share_create()
775 if (shspec->pass && shspec->pass[0]) in smb_share_create()
776 ssp->ss_pass = smb_strdup(shspec->pass); in smb_share_create()
777 ssp->ss_type = shspec->stype; in smb_share_create()
781 ssp->ss_mode = shspec->rights & SMBM_MASK; in smb_share_create()