summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:14:01 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:14:01 +0000
commit2b90938e0521ff32d1fd79a4a14d2204c61799ff (patch)
tree2d51db4f0b732a78f245e9fc6b4da5ea04c1fd11 /libdiskfs
parentcf5600c5565bdda548adc9f4146b63992509adc7 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* node-times.c (diskfs_set_node_times): Adapt to ``struct stat'' changes.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/ChangeLog5
-rw-r--r--libdiskfs/node-times.c27
2 files changed, 11 insertions, 21 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog
index 268f6aa4..4f26458b 100644
--- a/libdiskfs/ChangeLog
+++ b/libdiskfs/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
+
+ * node-times.c (diskfs_set_node_times): Adapt to ``struct stat''
+ changes.
+
2007-10-05 Thomas Schwinge <tschwinge@gnu.org>
* node-times.c (diskfs_set_node_atime): Fix typo from last commit.
diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c
index 4b3fbf10..43339224 100644
--- a/libdiskfs/node-times.c
+++ b/libdiskfs/node-times.c
@@ -51,37 +51,22 @@ diskfs_set_node_times (struct node *np)
the update will happen at the next call. */
if (np->dn_set_mtime)
{
-#ifdef notyet
- np->dn_stat.st_mtimespec.ts_sec = t.tv_sec;
- np->dn_stat.st_mtimespec.ts_nsec = t.tv_usec * 1000;
-#else
- np->dn_stat.st_mtime = t.tv_sec;
- np->dn_stat.st_mtime_usec = t.tv_usec;
-#endif
+ np->dn_stat.st_mtim.tv_sec = t.tv_sec;
+ np->dn_stat.st_mtim.tv_nsec = t.tv_usec * 1000;
np->dn_stat_dirty = 1;
np->dn_set_mtime = 0;
}
if (np->dn_set_atime)
{
-#ifdef notyet
- np->dn_stat.st_atimespec.ts_sec = t.tv_sec;
- np->dn_stat.st_atimespec.ts_nsec = t.tv_usec * 1000;
-#else
- np->dn_stat.st_atime = t.tv_sec;
- np->dn_stat.st_atime_usec = t.tv_usec;
-#endif
+ np->dn_stat.st_atim.tv_sec = t.tv_sec;
+ np->dn_stat.st_atim.tv_nsec = t.tv_usec * 1000;
np->dn_stat_dirty = 1;
np->dn_set_atime = 0;
}
if (np->dn_set_ctime)
{
-#ifdef notyet
- np->dn_stat.st_ctimespec.ts_sec = t.tv_sec;
- np->dn_stat.st_ctimespec.ts_nsec = t.tv_usec * 1000;
-#else
- np->dn_stat.st_ctime = t.tv_sec;
- np->dn_stat.st_ctime_usec = t.tv_usec;
-#endif
+ np->dn_stat.st_ctim.tv_sec = t.tv_sec;
+ np->dn_stat.st_ctim.tv_nsec = t.tv_usec * 1000;
np->dn_stat_dirty = 1;
np->dn_set_ctime = 0;
}