Changeset 770 for Whitix/branches/fs/fs/vfs/file.c
- Timestamp:
- 07/09/08 18:46:57 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/fs/vfs/file.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/vfs/file.c
r746 r770 48 48 return; 49 49 50 vNode->aTime=currTime; 51 SetVNodeDirty(vNode); 50 /* TODO: Check granularity of vNode times on disk. No point dirtying a vNode if 51 * the time isn't updated. */ 52 53 if (vNode->aTime.seconds < currTime.seconds) 54 { 55 vNode->aTime=currTime; 56 SetVNodeDirty(vNode); 57 } 52 58 } 53 59 … … 74 80 return; 75 81 76 vNode->mTime=currTime;77 78 82 /* Has the vNode just been created? If so, record its 79 83 creation time */ … … 81 85 vNode->cTime=currTime; 82 86 83 SetVNodeDirty(vNode); 87 /* See VfsFileAccessed comment. */ 88 if (vNode->mTime.seconds < currTime.seconds || create) 89 { 90 vNode->mTime=currTime; 91 SetVNodeDirty(vNode); 92 } 84 93 } 85 94 … … 146 155 copyOffset+=readSize; 147 156 file->position+=readSize; 157 148 158 BlockFree(buff); 149 159 }