Lines Matching refs:mountPoint
951 char mountPoint[255]; in createAsec() local
953 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in createAsec()
954 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in createAsec()
965 formatStatus = android::vold::ext4::Format(dmDevice, numImgSectors, mountPoint); in createAsec()
980 if (mkdir(mountPoint, 0000)) { in createAsec()
994 mountStatus = android::vold::ext4::Mount(dmDevice, mountPoint, in createAsec()
997 mountStatus = android::vold::vfat::Mount(dmDevice, mountPoint, in createAsec()
1012 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec()
1016 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint); in createAsec()
1031 char mountPoint[255]; in resizeAsec() local
1045 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in resizeAsec()
1046 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in resizeAsec()
1051 if (isMountpointMounted(mountPoint)) { in resizeAsec()
1173 char mountPoint[255]; in finalizeAsec() local
1204 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in finalizeAsec()
1205 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in finalizeAsec()
1212 result = android::vold::ext4::Mount(loopDevice, mountPoint, in finalizeAsec()
1215 result = android::vold::vfat::Mount(loopDevice, mountPoint, in finalizeAsec()
1233 char mountPoint[255]; in fixupAsecPermissions() local
1269 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in fixupAsecPermissions()
1270 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in fixupAsecPermissions()
1280 int ret = android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1289 char *paths[] = { mountPoint, NULL }; in fixupAsecPermissions()
1332 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions()
1334 … SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno)); in fixupAsecPermissions()
1342 result |= android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1361 char mountPoint[255]; in renameAsec() local
1384 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id1); in renameAsec()
1385 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in renameAsec()
1390 if (isMountpointMounted(mountPoint)) { in renameAsec()
1396 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id2); in renameAsec()
1397 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in renameAsec()
1402 if (isMountpointMounted(mountPoint)) { in renameAsec()
1431 char mountPoint[255]; in unmountAsec() local
1444 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in unmountAsec()
1445 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in unmountAsec()
1456 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force); in unmountAsec()
1460 char mountPoint[255]; in unmountObb() local
1468 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in unmountObb()
1469 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in unmountObb()
1474 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force); in unmountObb()
1478 const char *fileName, const char *mountPoint, bool force) { in unmountLoopImage() argument
1479 if (!isMountpointMounted(mountPoint)) { in unmountLoopImage()
1487 rc = umount(mountPoint); in unmountLoopImage()
1508 Process::killProcessesWithOpenFiles(mountPoint, signal); in unmountLoopImage()
1521 if (!rmdir(mountPoint)) { in unmountLoopImage()
1525 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno)); in unmountLoopImage()
1530 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno)); in unmountLoopImage()
1567 char mountPoint[255]; in destroyAsec() local
1580 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in destroyAsec()
1581 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in destroyAsec()
1586 if (isMountpointMounted(mountPoint)) { in destroyAsec()
1699 char mountPoint[255]; in mountAsec() local
1712 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in mountAsec()
1713 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in mountAsec()
1718 if (isMountpointMounted(mountPoint)) { in mountAsec()
1760 if (mkdir(mountPoint, 0000)) { in mountAsec()
1778 result = android::vold::ext4::Mount(dmDevice, mountPoint, in mountAsec()
1781 result = android::vold::vfat::Mount(dmDevice, mountPoint, in mountAsec()
1805 char mountPoint[255]; in mountObb() local
1813 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in mountObb()
1814 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in mountObb()
1819 if (isMountpointMounted(mountPoint)) { in mountObb()
1855 if (mkdir(mountPoint, 0755)) { in mountObb()
1871 if (android::vold::vfat::Mount(dmDevice, mountPoint, in mountObb()