mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +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,12 +88,14 @@ 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);
|
||||||
|
|
||||||
for (;;) {
|
if (_fh.status_flags() != Sysio::OPEN_MODE_RDONLY) {
|
||||||
if (_fh.fs().update_modification_timestamp(&_fh, ts)) {
|
for (;;) {
|
||||||
break;
|
if (_fh.fs().update_modification_timestamp(&_fh, ts)) {
|
||||||
} else {
|
break;
|
||||||
Genode::error("_sync: update_modification_timestamp failed");
|
} else {
|
||||||
vfs_io_waiter.wait_for_io();
|
Genode::error("_sync: update_modification_timestamp failed");
|
||||||
|
vfs_io_waiter.wait_for_io();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user