diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:11:11 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-11-13 23:11:11 +0000 |
commit | cf5600c5565bdda548adc9f4146b63992509adc7 (patch) | |
tree | 4485ab92e6c8d3e558455efa89b45bf6d165a950 /isofs/inode.c | |
parent | 8aa531548128d942355a2232747493dc1f2f4fdd (diff) |
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* inode.c (read_disknode): Adapt to ``struct stat'' changes.
Diffstat (limited to 'isofs/inode.c')
-rw-r--r-- | isofs/inode.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/isofs/inode.c b/isofs/inode.c index 091b75ba..99aca957 100644 --- a/isofs/inode.c +++ b/isofs/inode.c @@ -431,31 +431,20 @@ read_disknode (struct node *np, struct dirrect *dr, { struct timespec ts; isodate_915 (dr->date, &ts); - st->st_ctime = st->st_mtime = st->st_atime = ts.tv_sec; - st->st_ctime_usec = st->st_mtime_usec = st->st_atime_usec - = ts.tv_nsec / 1000; + st->st_ctim = st->st_mtim = st->st_atim = ts; } /* Override what we have better info for */ if (rl->valid & VALID_TF) { if (rl->tfflags & TF_CREATION) - { - st->st_ctime = rl->ctime.tv_sec; - st->st_ctime_usec = rl->ctime.tv_nsec / 1000; - } + st->st_ctim = rl->ctime; if (rl->tfflags & TF_ACCESS) - { - st->st_atime = rl->atime.tv_sec; - st->st_atime_usec = rl->atime.tv_nsec / 1000; - } + st->st_atim = rl->atime; if (rl->tfflags & TF_MODIFY) - { - st->st_mtime = rl->mtime.tv_sec; - st->st_mtime_usec = rl->mtime.tv_nsec / 1000; - } + st->st_mtim = rl->mtime; } st->st_blksize = logical_block_size; |