class ScopedLoopDevice

Defined at line 571 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

An RAII class that handles loop device allocation and attachment.

Automatically detaches the loop device (LOOP_CLR_FD) on destruction.

Public Methods

void ScopedLoopDevice ()

Defined at line 575 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedLoopDevice (ScopedLoopDevice && other)

Defined at line 576 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

const std::string & path ()

Defined at line 580 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

fit::result<int, ScopedLoopDevice> Create (int image_fd)

Defined at line 785 of file ../../src/starnix/tests/syscalls/cpp/test_helper.cc

ScopedLoopDevice & operator= (ScopedLoopDevice && other)

Defined at line 807 of file ../../src/starnix/tests/syscalls/cpp/test_helper.cc

void ~ScopedLoopDevice ()

Defined at line 817 of file ../../src/starnix/tests/syscalls/cpp/test_helper.cc