Lines Matching refs:mountPoint
397 const std::string& mountPoint, in mountNonFlattened() argument
432 MountedApexData apex_data(loopbackDevice.name, apex.GetPath(), mountPoint, in mountNonFlattened()
481 if (mount(blockDevice.c_str(), mountPoint.c_str(), "ext4", in mountNonFlattened()
484 << mountPoint; in mountNonFlattened()
485 auto status = VerifyMountedImage(apex, mountPoint); in mountNonFlattened()
487 umount2(mountPoint.c_str(), UMOUNT_NOFOLLOW | MNT_DETACH); in mountNonFlattened()
505 const std::string& mountPoint) { in mountFlattened() argument
512 if (mount(apex.GetPath().c_str(), mountPoint.c_str(), nullptr, MS_BIND, in mountFlattened()
515 << apex.GetPath() << " on " << mountPoint; in mountFlattened()
517 MountedApexData apex_data("" /* loop_name */, apex.GetPath(), mountPoint, in mountFlattened()
526 const std::string& mountPoint, in MountPackageImpl() argument
530 LOG(VERBOSE) << "Creating mount point: " << mountPoint; in MountPackageImpl()
539 auto exists = PathExists(mountPoint); in MountPackageImpl()
543 if (!*exists && mkdir(mountPoint.c_str(), kMkdirMode) != 0) { in MountPackageImpl()
545 << "Could not create mount point " << mountPoint); in MountPackageImpl()
547 auto deleter = [&mountPoint]() { in MountPackageImpl()
548 if (rmdir(mountPoint.c_str()) != 0) { in MountPackageImpl()
549 PLOG(WARNING) << "Could not rmdir " << mountPoint; in MountPackageImpl()
553 if (!IsEmptyDirectory(mountPoint)) { in MountPackageImpl()
554 return StatusM::Fail(PStringLog() << mountPoint << " is not empty"); in MountPackageImpl()
559 ret = mountFlattened(apex, mountPoint); in MountPackageImpl()
561 ret = mountNonFlattened(apex, mountPoint, device_name, verifyImage); in MountPackageImpl()
1070 Status MountPackage(const ApexFile& apex, const std::string& mountPoint) { in MountPackage() argument
1072 MountPackageImpl(apex, mountPoint, GetPackageId(apex.GetManifest()), in MountPackage()
1167 const std::string& mountPoint = apexd_private::GetPackageMountPoint(manifest); in activatePackageImpl() local
1170 Status mountStatus = apexd_private::MountPackage(apex_file, mountPoint); in activatePackageImpl()
1179 apexd_private::GetActiveMountPoint(manifest), mountPoint); in activatePackageImpl()