Lines Matching refs:sfep
23 xfs_dir2_sf_entry_t *sfep,
60 struct xfs_dir2_sf_entry *sfep)
62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen);
75 struct xfs_dir2_sf_entry *sfep)
77 uint8_t *from = sfep->name + sfep->namelen;
91 struct xfs_dir2_sf_entry *sfep,
94 uint8_t *to = sfep->name + sfep->namelen;
136 struct xfs_dir2_sf_entry *sfep)
139 uint8_t ftype = sfep->name[sfep->namelen];
151 struct xfs_dir2_sf_entry *sfep,
157 sfep->name[sfep->namelen] = ftype;
267 struct xfs_dir2_sf_entry *sfep; /* shortform entry */
287 sfep = xfs_dir2_sf_firstentry(sfp);
316 sfep->namelen = dep->namelen;
317 xfs_dir2_sf_put_offset(sfep, offset);
318 memcpy(sfep->name, dep->name, dep->namelen);
319 xfs_dir2_sf_put_ino(mp, sfp, sfep,
321 xfs_dir2_sf_put_ftype(mp, sfep,
324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
328 ASSERT((char *)sfep - (char *)sfp == size);
375 xfs_dir2_sf_entry_t *sfep = NULL; /* shortform entry */
411 xfs_dir2_sf_addname_pick(args, objchange, &sfep, &offset)) == 0) {
434 xfs_dir2_sf_addname_easy(args, sfep, offset, new_isize);
459 xfs_dir2_sf_entry_t *sfep, /* pointer to new entry */
469 byteoff = (int)((char *)sfep - (char *)sfp);
479 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + byteoff);
483 sfep->namelen = args->namelen;
484 xfs_dir2_sf_put_offset(sfep, offset);
485 memcpy(sfep->name, args->name, sfep->namelen);
486 xfs_dir2_sf_put_ino(mp, sfp, sfep, args->inumber);
487 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
525 xfs_dir2_sf_entry_t *sfep; /* entry in new dir */
569 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes);
573 sfep->namelen = args->namelen;
574 xfs_dir2_sf_put_offset(sfep, offset);
575 memcpy(sfep->name, args->name, sfep->namelen);
576 xfs_dir2_sf_put_ino(mp, sfp, sfep, args->inumber);
577 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
585 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
586 memcpy(sfep, oldsfep, old_isize - nbytes);
612 xfs_dir2_sf_entry_t *sfep; /* shortform entry */
620 sfep = xfs_dir2_sf_firstentry(sfp);
629 holefit = offset + size <= xfs_dir2_sf_get_offset(sfep);
630 offset = xfs_dir2_sf_get_offset(sfep) +
631 xfs_dir2_data_entsize(mp, sfep->namelen);
632 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
661 *sfepp = sfep;
680 xfs_dir2_sf_entry_t *sfep; /* shortform dir entry */
688 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp);
690 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
691 ASSERT(xfs_dir2_sf_get_offset(sfep) >= offset);
692 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
695 xfs_dir2_sf_get_offset(sfep) +
696 xfs_dir2_data_entsize(mp, sfep->namelen);
697 ASSERT(xfs_dir2_sf_get_ftype(mp, sfep) < XFS_DIR3_FT_MAX);
700 ASSERT((char *)sfep - (char *)sfp == dp->i_disk_size);
715 struct xfs_dir2_sf_entry *sfep;
749 sfep = xfs_dir2_sf_firstentry(sfp);
756 if (((char *)sfep + sizeof(*sfep)) >= endp)
760 if (sfep->namelen == 0)
768 next_sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
773 if (xfs_dir2_sf_get_offset(sfep) < offset)
777 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
784 filetype = xfs_dir2_sf_get_ftype(mp, sfep);
788 offset = xfs_dir2_sf_get_offset(sfep) +
789 xfs_dir2_data_entsize(mp, sfep->namelen);
791 sfep = next_sfep;
795 if ((void *)sfep != (void *)endp)
868 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
906 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
907 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
913 cmp = xfs_dir2_compname(args, sfep->name, sfep->namelen);
916 args->inumber = xfs_dir2_sf_get_ino(mp, sfp, sfep);
917 args->filetype = xfs_dir2_sf_get_ftype(mp, sfep);
920 ci_sfep = sfep;
948 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
964 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
965 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
966 if (xfs_da_compname(args, sfep->name, sfep->namelen) ==
968 ASSERT(xfs_dir2_sf_get_ino(mp, sfp, sfep) ==
981 byteoff = (int)((char *)sfep - (char *)sfp);
1047 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
1097 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
1098 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
1099 if (xfs_da_compname(args, sfep->name, sfep->namelen) ==
1101 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
1103 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1105 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
1166 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1201 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp),
1204 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep),
1206 sfep->namelen = oldsfep->namelen;
1207 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offset));
1208 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1209 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1211 xfs_dir2_sf_put_ftype(mp, sfep,
1239 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1274 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp),
1277 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep),
1279 sfep->namelen = oldsfep->namelen;
1280 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offset));
1281 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1282 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1284 xfs_dir2_sf_put_ftype(mp, sfep,