Skip to content

Commit

Permalink
use method Id() instead m_id.Get()
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiShtepa committed Feb 5, 2024
1 parent 0f475f7 commit 69aa8cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/blksnap/Snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void CSnapshot::Take()
{
struct blksnap_uuid param;

uuid_copy(param.b, m_id.Get());
uuid_copy(param.b, Id());
if (::ioctl(m_ctl->Get(), IOCTL_BLKSNAP_SNAPSHOT_TAKE, &param))
throw std::system_error(errno, std::generic_category(),
"Failed to take snapshot.");
Expand All @@ -138,17 +138,17 @@ void CSnapshot::Destroy()
{
struct blksnap_uuid param;

uuid_copy(param.b, m_id.Get());
uuid_copy(param.b, Id());
if (::ioctl(m_ctl->Get(), IOCTL_BLKSNAP_SNAPSHOT_DESTROY, &param))
throw std::system_error(errno, std::generic_category(),
"Failed to destroy snapshot.");
}

bool CSnapshot::WaitEvent(unsigned int timeoutMs, SBlksnapEvent& ev)
{
struct blksnap_snapshot_event param;
struct blksnap_snapshot_event param = {0};

uuid_copy(param.id.b, m_id.Get());
uuid_copy(param.id.b, Id());
param.timeout_ms = timeoutMs;

if (::ioctl(m_ctl->Get(), IOCTL_BLKSNAP_SNAPSHOT_WAIT_EVENT, &param))
Expand Down

0 comments on commit 69aa8cf

Please sign in to comment.