Some comments about hardlink and attributes.

This commit is contained in:
Andrea Mazzoleni 2012-06-20 22:38:53 +02:00
parent 3449f0afc1
commit c8a1a12f6a
2 changed files with 18 additions and 0 deletions

1
scan.c
View file

@ -482,6 +482,7 @@ static void scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, i
#if HAVE_LSTAT_EX
/* get inode info about the file, Windows needs an additional step */
/* also for hardlink, the real size of the file is read only with this function */
if (lstat_ex(path_next, &st) != 0) {
fprintf(stderr, "Error in stat_inode file '%s'. %s.\n", path_next, strerror(errno));
exit(EXIT_FAILURE);