tmpfs: Update mtime on writes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4195e7f206
commit
1481a4736a
@ -45,6 +45,8 @@ namespace TmpFS
|
||||
|
||||
inode->did_link();
|
||||
|
||||
m_metadata.mtime = *Timer::realtime_clock();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
@ -61,6 +63,8 @@ namespace TmpFS
|
||||
|
||||
inode->did_unlink();
|
||||
|
||||
m_metadata.mtime = *Timer::realtime_clock();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
@ -114,6 +118,8 @@ namespace TmpFS
|
||||
|
||||
m_metadata.size = m_data_buffer.size();
|
||||
|
||||
m_metadata.mtime = *Timer::realtime_clock();
|
||||
|
||||
return length;
|
||||
}
|
||||
|
||||
@ -127,6 +133,8 @@ namespace TmpFS
|
||||
|
||||
m_metadata.size = m_data_buffer.size();
|
||||
|
||||
m_metadata.mtime = *Timer::realtime_clock();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user