Lines Matching refs:hdlinks
602 static int is_hardlink(struct hdlinks_s *hdlinks, dev_t dev, ino_t ino) in is_hardlink() argument
606 for (i = 0; i < hdlinks->count; i++) { in is_hardlink()
607 if (hdlinks->hdl[i].src_dev == dev && in is_hardlink()
608 hdlinks->hdl[i].src_ino == ino) in is_hardlink()
786 struct hdlinks_s *hdlinks, in __populate_fs() argument
834 hdlink = is_hardlink(hdlinks, st.st_dev, st.st_ino); in __populate_fs()
837 hdlinks->hdl[hdlink].dst_ino, in __populate_fs()
945 retval = __populate_fs(fs, ino, name, root, hdlinks, in __populate_fs()
997 if (hdlinks->count == hdlinks->size) { in __populate_fs()
998 void *p = realloc(hdlinks->hdl, in __populate_fs()
999 (hdlinks->size + HDLINK_CNT) * in __populate_fs()
1007 hdlinks->hdl = p; in __populate_fs()
1008 hdlinks->size += HDLINK_CNT; in __populate_fs()
1010 hdlinks->hdl[hdlinks->count].src_dev = st.st_dev; in __populate_fs()
1011 hdlinks->hdl[hdlinks->count].src_ino = st.st_ino; in __populate_fs()
1012 hdlinks->hdl[hdlinks->count].dst_ino = ino; in __populate_fs()
1013 hdlinks->count++; in __populate_fs()
1030 struct hdlinks_s hdlinks; in populate_fs2() local
1038 hdlinks.count = 0; in populate_fs2()
1039 hdlinks.size = HDLINK_CNT; in populate_fs2()
1040 hdlinks.hdl = realloc(NULL, hdlinks.size * sizeof(struct hdlink_s)); in populate_fs2()
1041 if (hdlinks.hdl == NULL) { in populate_fs2()
1051 retval = __populate_fs(fs, parent_ino, source_dir, root, &hdlinks, in populate_fs2()
1055 free(hdlinks.hdl); in populate_fs2()