summaryrefslogtreecommitdiff
path: root/ftpfs/dir.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-12 21:22:40 +0000
committerMiles Bader <miles@gnu.org>1997-08-12 21:22:40 +0000
commit92b58baffa0034bff50f6f0686308105eb7f3d8b (patch)
tree753a95077e40b909c12d94b65638ad361fcfd747 /ftpfs/dir.c
parent9c2570d54afac6bac20bf4fa7cdbeca9fb73c81c (diff)
(update_entry):
Set E->stat.st_fsid & st_fstype. (ftpfs_next_inode): Variable removed.
Diffstat (limited to 'ftpfs/dir.c')
-rw-r--r--ftpfs/dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftpfs/dir.c b/ftpfs/dir.c
index e0d96e84..5b2b3bc4 100644
--- a/ftpfs/dir.c
+++ b/ftpfs/dir.c
@@ -198,9 +198,6 @@ sweep (struct ftpfs_dir *dir)
delete (e, dir);
}
-/* Inode numbers. */
-ino_t ftpfs_next_inode = 2;
-
/* Update the directory entry for NAME to reflect ST and SYMLINK_TARGET.
True is returned if successful, or false if there was a memory allocation
error. TIMESTAMP is used to record the time of this update. */
@@ -209,11 +206,12 @@ update_entry (struct ftpfs_dir_entry *e, const struct stat *st,
const char *symlink_target, time_t timestamp)
{
ino_t ino;
+ struct ftpfs *fs = e->dir->fs;
if (e->stat.st_ino)
ino = e->stat.st_ino;
else
- ino = ftpfs_next_inode++;
+ ino = fs->next_inode++;
e->name_timestamp = timestamp;
@@ -234,6 +232,8 @@ update_entry (struct ftpfs_dir_entry *e, const struct stat *st,
/* The st_ino field is always valid. */
e->stat.st_ino = ino;
+ e->stat.st_fsid = fs->fsid;
+ e->stat.st_fstype = FSTYPE_FTP;
}
/* Add the timestamp TIMESTAMP to the set used to detect bulk stats, and