From 53c84862ce0de17f6d63d26cfa20008c57dc7074 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 2 Feb 2009 03:04:47 +0000 Subject: [ftpfs] 2009-02-02 Samuel Thibault * dir.c (ftpfs_refresh_node): Use st_mtim.tv_sec members instead of st_mtime. Also compare st_mtim.tv_nsec members. [libdiskfs] 2009-02-02 Samuel Thibault * file-utimes.c (diskfs_S_file_utimes): Use st_atim.tv_sec/ st_mtim.tv_sec members instead of st_atime/st_mtime. Also set st_atim.tv_nsec/st_mtim.tv_nsec members. [libftpconn] 2009-02-02 Samuel Thibault * unix.c (parse_dir_entry): Use st_mtim.tv_sec instead of st_mtime. Set st_atim.tv_nsec, st_ctim.tv_nsec and st_mtim.tv_nsec to 0. [login] 2009-02-02 Samuel Thibault * utmp.c (S_login_get_idle_time): Use st_atim.tv_sec and st_atim.tv_nsec members instead of st_atime and st_atime_usec. [tmpfs] 2009-02-02 Samuel Thibault * tmpfs.h (struct disknode): Make atime, mtime and ctime members struct timespec instead of time_t. * tmpfs.c (main): Copy st_atim/st_mtim/st_ctim members from st to diskfs_root_node->dn_stat instead of st_atime/st_mtime/st_ctime. * node.c (diskfs_node_norefs): Copy st_atime/st_mtime/st_ctime members from np->dn_stat to atime/mtime/ctime members of np->dn (diskfs_cached_lookup): Conversely. --- ftpfs/ChangeLog | 5 +++++ ftpfs/dir.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'ftpfs') diff --git a/ftpfs/ChangeLog b/ftpfs/ChangeLog index e6df33b0..0b130fd6 100644 --- a/ftpfs/ChangeLog +++ b/ftpfs/ChangeLog @@ -1,3 +1,8 @@ +2009-02-02 Samuel Thibault + + * dir.c (ftpfs_refresh_node): Use st_mtim.tv_sec members instead + of st_mtime. Also compare st_mtim.tv_nsec members. + 2007-11-13 Thomas Schwinge * netfs.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes. diff --git a/ftpfs/dir.c b/ftpfs/dir.c index 8544a325..fb35a451 100644 --- a/ftpfs/dir.c +++ b/ftpfs/dir.c @@ -532,7 +532,9 @@ ftpfs_refresh_node (struct node *node) } } - if ((entry->stat.st_mtime < node->nn_stat.st_mtime + if ((entry->stat.st_mtim.tv_sec < node->nn_stat.st_mtim.tv_sec + || (entry->stat.st_mtim.tv_sec == node->nn_stat.st_mtim.tv_sec + && entry->stat.st_mtim.tv_nsec < node->nn_stat.st_mtim.tv_nsec) || entry->stat.st_size != node->nn_stat.st_size) && nn && nn->contents) /* The file has changed. */ -- cgit v1.2.3