class ScopedLoopDevice

Defined at line 565 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 569 of file ../../src/starnix/tests/syscalls/cpp/test_helper.h

void ScopedLoopDevice (ScopedLoopDevice && other)

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

const std::string & path ()

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

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

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

ScopedLoopDevice & operator= (ScopedLoopDevice && other)

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

void ~ScopedLoopDevice ()

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