* We need to update the status change time as well with each write, as required

by POSIX semantics.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31872 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-07-28 21:55:11 +00:00
parent b20d13f4a6
commit 121805b410

View File

@ -1488,7 +1488,7 @@ Inode::WriteAt(Transaction& transaction, off_t pos, const uint8* buffer,
// update the last modification time in memory, it will be written
// back to the inode, and the index when the file is closed
// TODO: should update the internal last modified time only at this point!
Node().last_modified_time
Node().last_modified_time = Node().status_change_time
= HOST_ENDIAN_TO_BFS_INT64(bfs_inode::ToInode(real_time_clock_usecs()));
// TODO: support INODE_LOGGED!