MCPcopy Create free account
hub / github.com/apache/mesos / unmount

Function unmount

src/linux/fs.cpp:535–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533
534
535Try<Nothing> unmount(const string& target, int flags)
536{
537 // The prototype of function 'umount2' on Linux is as follows:
538 // int umount2(const char *target, int flags);
539 if (::umount2(target.c_str(), flags) < 0) {
540 return ErrnoError("Failed to unmount '" + target + "'");
541 }
542
543 return Nothing();
544}
545
546
547Try<Nothing> unmountAll(const string& target, int flags)

Callers 15

foreachFunction · 0.70
enterFunction · 0.70
TEST_FFunction · 0.50
foreachFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
foreachMethod · 0.50
foreachFunction · 0.50
foreachFunction · 0.50
foreachFunction · 0.50
foreachFunction · 0.50
foreachFunction · 0.50

Calls 2

ErrnoErrorClass · 0.85
NothingClass · 0.85

Tested by 7

TEST_FFunction · 0.40
foreachFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
foreachMethod · 0.40
nodeUnstageVolumeMethod · 0.40
nodeUnpublishVolumeMethod · 0.40