Lines Matching refs:hdlinks
583 static int is_hardlink(struct hdlinks_s *hdlinks, dev_t dev, ino_t ino) in is_hardlink() argument
587 for (i = 0; i < hdlinks->count; i++) { in is_hardlink()
588 if (hdlinks->hdl[i].src_dev == dev && in is_hardlink()
589 hdlinks->hdl[i].src_ino == ino) in is_hardlink()
703 struct hdlinks_s *hdlinks, in __populate_fs() argument
750 hdlink = is_hardlink(hdlinks, st.st_dev, st.st_ino); in __populate_fs()
753 hdlinks->hdl[hdlink].dst_ino, in __populate_fs()
855 retval = __populate_fs(fs, ino, name, root, hdlinks, in __populate_fs()
907 if (hdlinks->count == hdlinks->size) { in __populate_fs()
908 void *p = realloc(hdlinks->hdl, in __populate_fs()
909 (hdlinks->size + HDLINK_CNT) * in __populate_fs()
917 hdlinks->hdl = p; in __populate_fs()
918 hdlinks->size += HDLINK_CNT; in __populate_fs()
920 hdlinks->hdl[hdlinks->count].src_dev = st.st_dev; in __populate_fs()
921 hdlinks->hdl[hdlinks->count].src_ino = st.st_ino; in __populate_fs()
922 hdlinks->hdl[hdlinks->count].dst_ino = ino; in __populate_fs()
923 hdlinks->count++; in __populate_fs()
939 struct hdlinks_s hdlinks; in populate_fs2() local
947 hdlinks.count = 0; in populate_fs2()
948 hdlinks.size = HDLINK_CNT; in populate_fs2()
949 hdlinks.hdl = realloc(NULL, hdlinks.size * sizeof(struct hdlink_s)); in populate_fs2()
950 if (hdlinks.hdl == NULL) { in populate_fs2()
960 retval = __populate_fs(fs, parent_ino, source_dir, root, &hdlinks, in populate_fs2()
964 free(hdlinks.hdl); in populate_fs2()