Fixed incorrect dates on ntfs volumes (#7120).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40536 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-02-16 18:23:10 +00:00
parent 5788aadfe3
commit ab7d0f0202

View File

@ -660,9 +660,9 @@ fs_rstat(fs_volume *_vol, fs_vnode *_node, struct stat *stbuf)
stbuf->st_uid = 0;
stbuf->st_gid = 0;
stbuf->st_ino = MREF(ni->mft_no);
stbuf->st_atime = ni->last_access_time;
stbuf->st_ctime = ni->last_mft_change_time;
stbuf->st_mtime = ni->last_data_change_time;
stbuf->st_atim = ntfs2timespec(ni->last_access_time);
stbuf->st_ctim = ntfs2timespec(ni->last_mft_change_time);
stbuf->st_mtim = ntfs2timespec(ni->last_data_change_time);
exit:
if (ni)
@ -1484,7 +1484,7 @@ fs_rename(fs_volume *_vol, fs_vnode *_odir, const char *oldname,
int uoldnameLength;
status_t result = B_NO_ERROR;
char path[MAX_PATH];
if (ns->flags & B_FS_IS_READONLY) {
@ -1663,8 +1663,8 @@ do_unlink(fs_volume *_vol, vnode *dir, const char *name, bool isdir)
ntfschar *uname = NULL;
int unameLength;
char path[MAX_PATH];
status_t result = B_NO_ERROR;
status_t result = B_NO_ERROR;
unameLength = ntfs_mbstoucs(name, &uname);
if (unameLength < 0) {