Lines Matching defs:fi
1226 smb_netfileinfo_t fi;
1229 rc = smb_ofile_netinfo_init(of, &fi);
1231 rc = smb_netfileinfo_encode(&fi, buf, buflen, nbytes);
1232 smb_ofile_netinfo_fini(&fi);
1239 smb_ofile_netinfo_init(smb_ofile_t *of, smb_netfileinfo_t *fi)
1261 fi->fi_permissions = of->f_granted_access;
1262 fi->fi_numlocks = smb_lock_get_lock_count(node, of);
1280 fi->fi_permissions = FILE_READ_DATA | FILE_WRITE_DATA |
1282 fi->fi_numlocks = 0;
1292 fi->fi_fid = of->f_fid;
1293 fi->fi_uniqid = of->f_uniqid;
1294 fi->fi_pathlen = strlen(buf) + 1;
1295 fi->fi_path = smb_mem_strdup(buf);
1298 fi->fi_namelen = user->u_domain_len + user->u_name_len + 2;
1299 fi->fi_username = kmem_alloc(fi->fi_namelen, KM_SLEEP);
1300 (void) snprintf(fi->fi_username, fi->fi_namelen, "%s\\%s",
1306 smb_ofile_netinfo_fini(smb_netfileinfo_t *fi)
1308 if (fi == NULL)
1311 if (fi->fi_path)
1312 smb_mem_free(fi->fi_path);
1313 if (fi->fi_username)
1314 kmem_free(fi->fi_username, fi->fi_namelen);
1316 bzero(fi, sizeof (smb_netfileinfo_t));