Lines Matching defs:odirent

165  * smb_odir_read(..., smb_odirent_t *odirent)
166 * Find the next directory entry in the odir and return it in odirent.
510 * odirent will be populated.
517 smb_odirent_t *odirent, boolean_t *eof)
525 ASSERT(odirent);
542 if ((rc = smb_odir_next_odirent(od, odirent)) != 0)
544 if (smb_odir_match_name(od, odirent))
591 smb_odirent_t *odirent;
620 odirent = kmem_alloc(sizeof (smb_odirent_t), KM_SLEEP);
623 if ((rc = smb_odir_next_odirent(od, odirent)) != 0)
627 if (u8_validate(odirent->od_name,
628 strlen(odirent->od_name), NULL,
632 if (!smb_odir_match_name(od, odirent))
635 rc = smb_odir_wildcard_fileinfo(sr, od, odirent,
640 kmem_free(odirent, sizeof (smb_odirent_t));
677 smb_odirent_t *odirent;
710 odirent = kmem_alloc(sizeof (smb_odirent_t), KM_SLEEP);
715 if ((rc = smb_odir_next_odirent(od, odirent)) != 0)
718 if (strncmp(odirent->od_name, SMB_STREAM_PREFIX,
724 od->d_dnode, odirent->od_name, &fnode);
738 odirent->od_name + SMB_STREAM_PREFIX_LEN,
747 kmem_free(odirent, sizeof (smb_odirent_t));
1034 * If the odirent offset >= SMB_MAXDIRSIZE return ENOENT and set d_eof
1038 * 0 - success. odirent is populated with the next directory entry
1043 smb_odir_next_odirent(smb_odir_t *od, smb_odirent_t *odirent)
1055 bzero(odirent, sizeof (smb_odirent_t));
1111 odirent->od_ino = edp->ed_ino;
1112 odirent->od_eflags = edp->ed_eflags;
1116 odirent->od_ino = dp->d_ino;
1117 odirent->od_eflags = 0;
1123 smb_vop_catia_v4tov5(np, odirent->od_name,
1124 sizeof (odirent->od_name));
1126 (void) strlcpy(odirent->od_name, np,
1127 sizeof (odirent->od_name));
1254 * odirent contains a directory entry, obtained from a vop_readdir.
1256 * shortname is used as 'name', in place of odirent->od_name.
1275 smb_odirent_t *odirent, smb_fileinfo_t *fileinfo)
1293 od->d_tree->t_snode, od->d_dnode, odirent->od_name, &fnode);
1299 smb_odir_lookup_link(sr, od, odirent->od_name, &tgt_node)) {
1339 name = odirent->od_name;
1342 (odirent->od_eflags & ED_CASE_CONFLICT));
1344 smb_mangle(name, odirent->od_ino,
1416 * - Check if odirent->od_name matches od->d_pattern.
1418 * odirent->od_name and check if it matches od->d_pattern.
1421 smb_odir_match_name(smb_odir_t *od, smb_odirent_t *odirent)
1423 char *name = odirent->od_name;
1425 ino64_t ino = odirent->od_ino;