* 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:
@@ -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
|
// update the last modification time in memory, it will be written
|
||||||
// back to the inode, and the index when the file is closed
|
// back to the inode, and the index when the file is closed
|
||||||
// TODO: should update the internal last modified time only at this point!
|
// 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()));
|
= HOST_ENDIAN_TO_BFS_INT64(bfs_inode::ToInode(real_time_clock_usecs()));
|
||||||
|
|
||||||
// TODO: support INODE_LOGGED!
|
// TODO: support INODE_LOGGED!
|
||||||
|
|||||||
Reference in New Issue
Block a user