vfs/cbe: fix ID argument on discard_snap

When discarding a snapshot, the CBE VFS plugin didn't communicate the ID of
the snapshot to the CBE. Instead it set the ID argument to 0. Therefore the
operation never had any effect.

Ref #4032
This commit is contained in:
Martin Stein 2021-03-17 08:49:32 +01:00 committed by Norman Feske
parent 9b953e79ba
commit 88e6991083

View File

@ -1736,7 +1736,7 @@ class Vfs_cbe::Wrapper
Genode::log("Req: (req: ", _discard_snapshot_request.cbe_request, ")"); Genode::log("Req: (req: ", _discard_snapshot_request.cbe_request, ")");
} }
_cbe->submit_client_request(_discard_snapshot_request.cbe_request, 0); _cbe->submit_client_request(_discard_snapshot_request.cbe_request, id);
_discard_snapshot_request.state = _discard_snapshot_request.state =
Frontend_request::State::IN_PROGRESS; Frontend_request::State::IN_PROGRESS;