class ScopedLoopDevice

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

void ScopedLoopDevice (ScopedLoopDevice && other)

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

const std::string & path ()

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

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

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

ScopedLoopDevice & operator= (ScopedLoopDevice && other)

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

void ~ScopedLoopDevice ()

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