class ScopedMount

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

An RAII class that handles a mount. The container will ensure the

unmount when the object is deleted.

Public Methods

void ScopedMount ()

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

void ScopedMount (const ScopedMount & )

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

ScopedMount & operator= (const ScopedMount & )

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

fit::result<int, ScopedMount> Mount (const std::string & source, const std::string & target, const std::string & filesystemtype, unsigned long mountflags, const void * data)

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

fit::result<int, ScopedMount> CreateDirAndMount (const std::string & source, const std::string & target, const std::string & filesystemtype, unsigned long mountflags, const void * data)

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

ScopedMount & operator= (ScopedMount && other)

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

void ScopedMount (ScopedMount && other)

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

void ~ScopedMount ()

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

void Unmount ()

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