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:
agc 2007-11-11 09:25:37 +00:00
parent 8abe1b3c75
commit 762d3dee18
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}