Home
last modified time | relevance | path

Searched refs:mountPoint (Results 1 – 10 of 10) sorted by relevance

/system/apex/apexd/
Dapex_database.cpp111 std::pair<std::string, int> parseMountPoint(const std::string& mountPoint) { in parseMountPoint() argument
112 auto packageId = fs::path(mountPoint).filename(); in parseMountPoint()
124 bool isActiveMountPoint(const std::string& mountPoint) { in isActiveMountPoint() argument
125 return (mountPoint.find('@') == std::string::npos); in isActiveMountPoint()
192 const std::string& mountPoint) { in resolveMountInfo() argument
200 auto result = MountedApexData(block.DevPath(), *backingFile, mountPoint, in resolveMountInfo()
212 result.mount_point = mountPoint; in resolveMountInfo()
257 auto [block, mountPoint] = parseMountInfo(line); in PopulateFromMounts()
259 if (fs::path(mountPoint).parent_path() != kApexRoot) { in PopulateFromMounts()
262 if (isActiveMountPoint(mountPoint)) { in PopulateFromMounts()
[all …]
Dapexd.cpp361 const std::string& mountPoint, in MountPackageImpl() argument
365 LOG(VERBOSE) << "Creating mount point: " << mountPoint; in MountPackageImpl()
374 auto exists = PathExists(mountPoint); in MountPackageImpl()
378 if (!*exists && mkdir(mountPoint.c_str(), kMkdirMode) != 0) { in MountPackageImpl()
379 return ErrnoError() << "Could not create mount point " << mountPoint; in MountPackageImpl()
381 auto deleter = [&mountPoint]() { in MountPackageImpl()
382 if (rmdir(mountPoint.c_str()) != 0) { in MountPackageImpl()
383 PLOG(WARNING) << "Could not rmdir " << mountPoint; in MountPackageImpl()
387 if (!IsEmptyDirectory(mountPoint)) { in MountPackageImpl()
388 return ErrnoError() << mountPoint << " is not empty"; in MountPackageImpl()
[all …]
/system/vold/
DAppFuseUtil.cpp156 std::string mountPoint; in OpenAppFuseFile() local
157 if (GetMountPath(uid, name, &mountPoint) != android::OK) { in OpenAppFuseFile()
162 std::string path = StringPrintf("%s/%d", mountPoint.c_str(), fileId); in OpenAppFuseFile()
DVoldNativeService.cpp641 const std::string& mountPoint) { in mountFstab() argument
645 return translateBool(fscrypt_mount_metadata_encrypted(blkDevice, mountPoint, false)); in mountFstab()
649 const std::string& mountPoint) { in encryptFstab() argument
653 return translateBool(fscrypt_mount_metadata_encrypted(blkDevice, mountPoint, true)); in encryptFstab()
791 binder::Status VoldNativeService::restoreCheckpoint(const std::string& mountPoint) { in restoreCheckpoint() argument
793 CHECK_ARGUMENT_PATH(mountPoint); in restoreCheckpoint()
796 return cp_restoreCheckpoint(mountPoint); in restoreCheckpoint()
799 binder::Status VoldNativeService::restoreCheckpointPart(const std::string& mountPoint, int count) { in restoreCheckpointPart() argument
801 CHECK_ARGUMENT_PATH(mountPoint); in restoreCheckpointPart()
804 return cp_restoreCheckpoint(mountPoint, count); in restoreCheckpointPart()
DCheckpoint.h46 android::binder::Status cp_restoreCheckpoint(const std::string& mountPoint, int count = 0);
DVoldNativeService.h106 binder::Status mountFstab(const std::string& blkDevice, const std::string& mountPoint);
107 binder::Status encryptFstab(const std::string& blkDevice, const std::string& mountPoint);
138 binder::Status restoreCheckpoint(const std::string& mountPoint);
139 binder::Status restoreCheckpointPart(const std::string& mountPoint, int count);
DUtils.cpp854 auto mountPoint = std::string(mnt->mnt_dir) + "/"; in findMountPointsWithPrefix() local
855 if (android::base::StartsWith(mountPoint, prefixWithSlash)) { in findMountPointsWithPrefix()
856 mountPoints.push_front(mountPoint); in findMountPointsWithPrefix()
878 status_t UnmountTree(const std::string& mountPoint) { in UnmountTree() argument
879 if (TEMP_FAILURE_RETRY(umount2(mountPoint.c_str(), MNT_DETACH)) < 0 && errno != EINVAL && in UnmountTree()
881 PLOG(ERROR) << "Failed to unmount " << mountPoint; in UnmountTree()
DUtils.h140 status_t UnmountTree(const std::string& mountPoint);
/system/incremental_delivery/incfs/
DMountRegistry.cpp345 auto mountPoint = std::string(items[4]); in loadFrom() local
346 fixProcPath(mountPoint); in loadFrom()
347 mountPoint = path::normalize(mountPoint); in loadFrom()
351 mount.root.assign(mountPoint); in loadFrom()
356 << "' mounted in multiple places, ignoring later mount '" << mountPoint in loadFrom()
361 mount.bindPoints.emplace_back(std::string(subdir), std::move(mountPoint)); in loadFrom()
/system/vold/binder/android/os/
DIVold.aidl84 void mountFstab(@utf8InCpp String blkDevice, @utf8InCpp String mountPoint); in mountFstab() argument
85 void encryptFstab(@utf8InCpp String blkDevice, @utf8InCpp String mountPoint); in encryptFstab() argument