Lines Matching defs: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 */
409 xfs_dir2_sf_addname_pick(args, objchange, &sfep, &offset)) == 0) {
432 xfs_dir2_sf_addname_easy(args, sfep, offset, new_isize);
457 xfs_dir2_sf_entry_t *sfep, /* pointer to new entry */
464 int byteoff = (int)((char *)sfep - (char *)sfp);
474 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + byteoff);
478 sfep->namelen = args->namelen;
479 xfs_dir2_sf_put_offset(sfep, offset);
480 memcpy(sfep->name, args->name, sfep->namelen);
481 xfs_dir2_sf_put_ino(mp, sfp, sfep, args->inumber);
482 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
520 xfs_dir2_sf_entry_t *sfep; /* entry in new dir */
560 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes);
564 sfep->namelen = args->namelen;
565 xfs_dir2_sf_put_offset(sfep, offset);
566 memcpy(sfep->name, args->name, sfep->namelen);
567 xfs_dir2_sf_put_ino(mp, sfp, sfep, args->inumber);
568 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
576 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
577 memcpy(sfep, oldsfep, old_isize - nbytes);
603 xfs_dir2_sf_entry_t *sfep; /* shortform entry */
610 sfep = xfs_dir2_sf_firstentry(sfp);
619 holefit = offset + size <= xfs_dir2_sf_get_offset(sfep);
620 offset = xfs_dir2_sf_get_offset(sfep) +
621 xfs_dir2_data_entsize(mp, sfep->namelen);
622 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
651 *sfepp = sfep;
671 xfs_dir2_sf_entry_t *sfep; /* shortform dir entry */
677 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp);
679 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
680 ASSERT(xfs_dir2_sf_get_offset(sfep) >= offset);
681 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
684 xfs_dir2_sf_get_offset(sfep) +
685 xfs_dir2_data_entsize(mp, sfep->namelen);
686 ASSERT(xfs_dir2_sf_get_ftype(mp, sfep) < XFS_DIR3_FT_MAX);
689 ASSERT((char *)sfep - (char *)sfp == dp->i_disk_size);
703 struct xfs_dir2_sf_entry *sfep;
731 sfep = xfs_dir2_sf_firstentry(sfp);
738 if (((char *)sfep + sizeof(*sfep)) >= endp)
742 if (sfep->namelen == 0)
750 next_sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
755 if (xfs_dir2_sf_get_offset(sfep) < offset)
759 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
766 filetype = xfs_dir2_sf_get_ftype(mp, sfep);
770 offset = xfs_dir2_sf_get_offset(sfep) +
771 xfs_dir2_data_entsize(mp, sfep->namelen);
773 sfep = next_sfep;
777 if ((void *)sfep != (void *)endp)
849 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
885 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
886 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
892 cmp = xfs_dir2_compname(args, sfep->name, sfep->namelen);
895 args->inumber = xfs_dir2_sf_get_ino(mp, sfp, sfep);
896 args->filetype = xfs_dir2_sf_get_ftype(mp, sfep);
899 ci_sfep = sfep;
928 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
942 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
943 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
944 if (xfs_da_compname(args, sfep->name, sfep->namelen) ==
946 ASSERT(xfs_dir2_sf_get_ino(mp, sfp, sfep) ==
959 byteoff = (int)((char *)sfep - (char *)sfp);
1026 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
1074 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count;
1075 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep)) {
1076 if (xfs_da_compname(args, sfep->name, sfep->namelen) ==
1078 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep);
1080 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1082 xfs_dir2_sf_put_ftype(mp, sfep, args->filetype);
1143 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1177 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp),
1180 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep),
1182 sfep->namelen = oldsfep->namelen;
1183 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offset));
1184 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1185 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1187 xfs_dir2_sf_put_ftype(mp, sfep,
1215 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1249 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp),
1252 i++, sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep),
1254 sfep->namelen = oldsfep->namelen;
1255 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offset));
1256 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1257 xfs_dir2_sf_put_ino(mp, sfp, sfep,
1259 xfs_dir2_sf_put_ftype(mp, sfep,