MCPcopy Create free account
hub / github.com/MhmRdd/NoHello / doumount

Function doumount

module/src/main/cpp/nohello.cpp:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static void doumount(const std::string& mntPnt) {
235 errno = 0;
236 int res;
237 const char *mntpnt = mntPnt.c_str();
238 if ((res = umount2(mntpnt, MNT_DETACH)) == 0)
239 LOGD("umount2(\"%s\", MNT_DETACH): returned (0): 0 (Success)", mntpnt);
240 else
241 LOGE("umount2(\"%s\", MNT_DETACH): returned %d: %d (%s)", mntpnt, res, errno, strerror(errno));
242}
243
244static void remount(const std::vector<MountInfo>& mounts) {
245 for (const auto& mount : mounts) {

Callers 1

unmountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected