Lines Matching refs:mountPoint

880         char mountPoint[255];  in createAsec()  local
882 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in createAsec()
883 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in createAsec()
894 formatStatus = android::vold::ext4::Format(dmDevice, numImgSectors, mountPoint); in createAsec()
909 if (mkdir(mountPoint, 0000)) { in createAsec()
923 mountStatus = android::vold::ext4::Mount(dmDevice, mountPoint, in createAsec()
926 mountStatus = android::vold::vfat::Mount(dmDevice, mountPoint, in createAsec()
941 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec()
945 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint); in createAsec()
960 char mountPoint[255]; in resizeAsec() local
974 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in resizeAsec()
975 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in resizeAsec()
980 if (isMountpointMounted(mountPoint)) { in resizeAsec()
1104 char mountPoint[255]; in finalizeAsec() local
1135 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in finalizeAsec()
1136 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in finalizeAsec()
1143 result = android::vold::ext4::Mount(loopDevice, mountPoint, in finalizeAsec()
1146 result = android::vold::vfat::Mount(loopDevice, mountPoint, in finalizeAsec()
1164 char mountPoint[255]; in fixupAsecPermissions() local
1200 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in fixupAsecPermissions()
1201 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in fixupAsecPermissions()
1211 int ret = android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1220 char *paths[] = { mountPoint, NULL }; in fixupAsecPermissions()
1263 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions()
1265 … SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno)); in fixupAsecPermissions()
1273 result |= android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1292 char mountPoint[255]; in renameAsec() local
1315 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id1); in renameAsec()
1316 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in renameAsec()
1321 if (isMountpointMounted(mountPoint)) { in renameAsec()
1327 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id2); in renameAsec()
1328 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in renameAsec()
1333 if (isMountpointMounted(mountPoint)) { in renameAsec()
1362 char mountPoint[255]; in unmountAsec() local
1375 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in unmountAsec()
1376 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in unmountAsec()
1387 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force); in unmountAsec()
1391 char mountPoint[255]; in unmountObb() local
1399 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in unmountObb()
1400 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in unmountObb()
1405 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force); in unmountObb()
1409 const char *fileName, const char *mountPoint, bool force) { in unmountLoopImage() argument
1410 if (!isMountpointMounted(mountPoint)) { in unmountLoopImage()
1418 rc = umount(mountPoint); in unmountLoopImage()
1439 Process::killProcessesWithOpenFiles(mountPoint, signal); in unmountLoopImage()
1452 if (!rmdir(mountPoint)) { in unmountLoopImage()
1456 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno)); in unmountLoopImage()
1461 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno)); in unmountLoopImage()
1498 char mountPoint[255]; in destroyAsec() local
1511 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in destroyAsec()
1512 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in destroyAsec()
1517 if (isMountpointMounted(mountPoint)) { in destroyAsec()
1630 char mountPoint[255]; in mountAsec() local
1643 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id); in mountAsec()
1644 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in mountAsec()
1649 if (isMountpointMounted(mountPoint)) { in mountAsec()
1691 if (mkdir(mountPoint, 0000)) { in mountAsec()
1709 result = android::vold::ext4::Mount(dmDevice, mountPoint, in mountAsec()
1712 result = android::vold::vfat::Mount(dmDevice, mountPoint, in mountAsec()
1736 char mountPoint[255]; in mountObb() local
1744 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in mountObb()
1745 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) { in mountObb()
1750 if (isMountpointMounted(mountPoint)) { in mountObb()
1786 if (mkdir(mountPoint, 0755)) { in mountObb()
1802 if (android::vold::vfat::Mount(dmDevice, mountPoint, in mountObb()