Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83213
b: refs/heads/master
c: d7b8851
h: refs/heads/master
i:
  83211: 2b210b5
v: v3
  • Loading branch information
Dominique Quatravaux authored and Linus Torvalds committed Feb 5, 2008
1 parent 40a1e83 commit 2280b95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5d4bb171cab17576779a51d23d313abcb3db102
refs/heads/master: d7b88513c504e49d450b0f89f80ba9d451a3c804
8 changes: 4 additions & 4 deletions trunk/fs/hostfs/hostfs_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@ int set_attr(const char *file, struct hostfs_iattr *attrs, int fd)
return err;

times[0].tv_sec = atime_ts.tv_sec;
times[0].tv_usec = atime_ts.tv_nsec * 1000;
times[0].tv_usec = atime_ts.tv_nsec / 1000;
times[1].tv_sec = mtime_ts.tv_sec;
times[1].tv_usec = mtime_ts.tv_nsec * 1000;
times[1].tv_usec = mtime_ts.tv_nsec / 1000;

if (attrs->ia_valid & HOSTFS_ATTR_ATIME_SET) {
times[0].tv_sec = attrs->ia_atime.tv_sec;
times[0].tv_usec = attrs->ia_atime.tv_nsec * 1000;
times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000;
}
if (attrs->ia_valid & HOSTFS_ATTR_MTIME_SET) {
times[1].tv_sec = attrs->ia_mtime.tv_sec;
times[1].tv_usec = attrs->ia_mtime.tv_nsec * 1000;
times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000;
}

if (fd >= 0) {
Expand Down

0 comments on commit 2280b95

Please sign in to comment.