Lines Matching refs:odirent
527 smb_odirent_t *odirent, boolean_t *eof) in smb_odir_read() argument
535 ASSERT(odirent); in smb_odir_read()
552 if ((rc = smb_odir_next_odirent(od, odirent)) != 0) in smb_odir_read()
554 if (smb_odir_match_name(od, odirent)) in smb_odir_read()
601 smb_odirent_t *odirent; in smb_odir_read_fileinfo() local
630 odirent = kmem_alloc(sizeof (smb_odirent_t), KM_SLEEP); in smb_odir_read_fileinfo()
640 if ((rc = smb_odir_next_odirent(od, odirent)) != 0) in smb_odir_read_fileinfo()
644 if (u8_validate(odirent->od_name, in smb_odir_read_fileinfo()
645 strlen(odirent->od_name), NULL, in smb_odir_read_fileinfo()
649 if (!smb_odir_match_name(od, odirent)) in smb_odir_read_fileinfo()
652 rc = smb_odir_wildcard_fileinfo(sr, od, odirent, in smb_odir_read_fileinfo()
657 kmem_free(odirent, sizeof (smb_odirent_t)); in smb_odir_read_fileinfo()
694 smb_odirent_t *odirent; in smb_odir_read_streaminfo() local
727 odirent = kmem_alloc(sizeof (smb_odirent_t), KM_SLEEP); in smb_odir_read_streaminfo()
732 if ((rc = smb_odir_next_odirent(od, odirent)) != 0) in smb_odir_read_streaminfo()
735 if (strncmp(odirent->od_name, SMB_STREAM_PREFIX, in smb_odir_read_streaminfo()
745 smb_strname_restricted(odirent->od_name)) in smb_odir_read_streaminfo()
749 od->d_dnode, odirent->od_name, &fnode); in smb_odir_read_streaminfo()
763 odirent->od_name + SMB_STREAM_PREFIX_LEN, in smb_odir_read_streaminfo()
772 kmem_free(odirent, sizeof (smb_odirent_t)); in smb_odir_read_streaminfo()
1079 smb_odir_next_odirent(smb_odir_t *od, smb_odirent_t *odirent) in smb_odir_next_odirent() argument
1091 bzero(odirent, sizeof (smb_odirent_t)); in smb_odir_next_odirent()
1157 odirent->od_ino = edp->ed_ino; in smb_odir_next_odirent()
1158 odirent->od_eflags = edp->ed_eflags; in smb_odir_next_odirent()
1162 odirent->od_ino = dp->d_ino; in smb_odir_next_odirent()
1163 odirent->od_eflags = 0; in smb_odir_next_odirent()
1169 smb_vop_catia_v4tov5(np, odirent->od_name, in smb_odir_next_odirent()
1170 sizeof (odirent->od_name)); in smb_odir_next_odirent()
1172 (void) strlcpy(odirent->od_name, np, in smb_odir_next_odirent()
1173 sizeof (odirent->od_name)); in smb_odir_next_odirent()
1320 smb_odirent_t *odirent, smb_fileinfo_t *fileinfo) in smb_odir_wildcard_fileinfo() argument
1345 rc = smb_vop_lookup(od->d_dnode->vp, odirent->od_name, &fvp, in smb_odir_wildcard_fileinfo()
1367 if (smb_odir_lookup_link(sr, od, odirent->od_name, &tnode)) { in smb_odir_wildcard_fileinfo()
1392 (strcasecmp(odirent->od_name, ".$EXTEND") == 0)) { in smb_odir_wildcard_fileinfo()
1433 name = odirent->od_name; in smb_odir_wildcard_fileinfo()
1436 (odirent->od_eflags & ED_CASE_CONFLICT)); in smb_odir_wildcard_fileinfo()
1438 smb_mangle(name, odirent->od_ino, in smb_odir_wildcard_fileinfo()
1517 smb_odir_match_name(smb_odir_t *od, smb_odirent_t *odirent) in smb_odir_match_name() argument
1519 char *name = odirent->od_name; in smb_odir_match_name()
1521 ino64_t ino = odirent->od_ino; in smb_odir_match_name()