mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 06:31:10 +00:00
noux: don't update mtimes for read-only files
The VFS server as reworked in issue #3547 responds to such an attempt with a failure as acknowledgement, triggering the client-side error "Error: packet operation=2 failed" at noux.
This commit is contained in:
parent
65d72fb07a
commit
1485cd9d24
@ -88,6 +88,7 @@ struct Noux::Vfs_io_channel : Io_channel
|
|||||||
Registered_no_delete<Vfs_io_waiter>
|
Registered_no_delete<Vfs_io_waiter>
|
||||||
vfs_io_waiter(_vfs_io_waiter_registry);
|
vfs_io_waiter(_vfs_io_waiter_registry);
|
||||||
|
|
||||||
|
if (_fh.status_flags() != Sysio::OPEN_MODE_RDONLY) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (_fh.fs().update_modification_timestamp(&_fh, ts)) {
|
if (_fh.fs().update_modification_timestamp(&_fh, ts)) {
|
||||||
break;
|
break;
|
||||||
@ -96,6 +97,7 @@ struct Noux::Vfs_io_channel : Io_channel
|
|||||||
vfs_io_waiter.wait_for_io();
|
vfs_io_waiter.wait_for_io();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (!_fh.fs().queue_sync(&_fh))
|
while (!_fh.fs().queue_sync(&_fh))
|
||||||
vfs_io_waiter.wait_for_io();
|
vfs_io_waiter.wait_for_io();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user