Lines Matching refs:targetDir
408 static bool restoreconControlFiles(std::string_view targetDir) { in restoreconControlFiles() argument
410 {android::incfs::path::join(targetDir, INCFS_PENDING_READS_FILENAME), in restoreconControlFiles()
411 android::incfs::path::join(targetDir, INCFS_LOG_FILENAME)}; in restoreconControlFiles()
425 IncFsControl* IncFs_Mount(const char* backingPath, const char* targetDir, in IncFs_Mount() argument
433 if (auto err = isValidMountTarget(targetDir); err != 0) { in IncFs_Mount()
455 if (::mount(backingPath, targetDir, INCFS_NAME, MS_NOSUID | MS_NODEV | MS_NOATIME, in IncFs_Mount()
457 PLOG(ERROR) << "[incfs] Failed to mount IncFS filesystem: " << targetDir in IncFs_Mount()
462 if (!restoreconControlFiles(targetDir)) { in IncFs_Mount()
466 auto control = makeControl(targetDir); in IncFs_Mount()
1148 IncFsErrorCode IncFs_BindMount(const char* sourceDir, const char* targetDir) { in IncFs_BindMount() argument
1162 if (auto err = isValidMountTarget(targetDir); err != 0) { in IncFs_BindMount()
1166 if (::mount(sourceDir, targetDir, nullptr, MS_BIND, nullptr)) { in IncFs_BindMount()
1167 PLOG(ERROR) << "[incfs] Failed to bind mount '" << sourceDir << "' to '" << targetDir in IncFs_BindMount()