parent
180f9e6384
commit
99b632f86c
|
@ -512,6 +512,7 @@ class Vfs_server::Session_component : private Session_resources,
|
||||||
}
|
}
|
||||||
|
|
||||||
fs_stat.size = vfs_stat.size;
|
fs_stat.size = vfs_stat.size;
|
||||||
|
fs_stat.modification_time.value = vfs_stat.modification_time.value;
|
||||||
});
|
});
|
||||||
return fs_stat;
|
return fs_stat;
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,6 +379,20 @@ class Vfs_server::Io_node : public Vfs_server::Node,
|
||||||
/* discard this packet */
|
/* discard this packet */
|
||||||
_drop_packet();
|
_drop_packet();
|
||||||
break;
|
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;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue