Use the new virtual inode number, which is calculated at directory entry
insertion time, to prevent fts thinking that we have directory cycles.
This commit is contained in:
parent
8abe1b3c75
commit
762d3dee18
|
@ -345,14 +345,17 @@ iscsifs_getattr(const char *path, struct stat *st)
|
|||
case 'f':
|
||||
(void) memcpy(st, &iscsi.file, sizeof(*st));
|
||||
sp = (struct stat *) ep->tgt;
|
||||
st->st_ino = sp->st_ino;
|
||||
st->st_size = sp->st_size;
|
||||
break;
|
||||
case 'l':
|
||||
(void) memcpy(st, &iscsi.lnk, sizeof(*st));
|
||||
st->st_size = ep->tgtlen;
|
||||
break;
|
||||
default:
|
||||
warn("unknown directory type `%c'", ep->type);
|
||||
return -ENOENT;
|
||||
}
|
||||
st->st_ino = ep->ino;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue