mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
parent
180f9e6384
commit
99b632f86c
@ -512,6 +512,7 @@ class Vfs_server::Session_component : private Session_resources,
|
||||
}
|
||||
|
||||
fs_stat.size = vfs_stat.size;
|
||||
fs_stat.modification_time.value = vfs_stat.modification_time.value;
|
||||
});
|
||||
return fs_stat;
|
||||
}
|
||||
|
@ -379,6 +379,20 @@ class Vfs_server::Io_node : public Vfs_server::Node,
|
||||
/* discard this packet */
|
||||
_drop_packet();
|
||||
break;
|
||||
|
||||
case Packet_descriptor::WRITE_TIMESTAMP:
|
||||
try {
|
||||
_packet.with_timestamp([&] (File_system::Timestamp const time) {
|
||||
Vfs::Timestamp ts { .value = time.value };
|
||||
_handle.fs().update_modification_timestamp(&_handle, ts);
|
||||
});
|
||||
_packet.succeeded(true);
|
||||
_ack_packet(0);
|
||||
} catch (Vfs::File_io_service::Insufficient_buffer) {
|
||||
/* packet is pending */
|
||||
result = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user