Lines Matching refs:mountPoint
880 char mountPoint[255];
882 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
883 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
884 SLOGE("ASEC fs format failed: couldn't construct mountPoint");
894 formatStatus = android::vold::ext4::Format(dmDevice, numImgSectors, mountPoint);
909 if (mkdir(mountPoint, 0000)) {
911 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
923 mountStatus = android::vold::ext4::Mount(dmDevice, mountPoint,
926 mountStatus = android::vold::vfat::Mount(dmDevice, mountPoint,
941 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC);
945 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint);
960 char mountPoint[255];
974 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
975 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
976 SLOGE("ASEC resize failed for %s: couldn't construct mountpoint", id);
980 if (isMountpointMounted(mountPoint)) {
1104 char mountPoint[255];
1135 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1136 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1137 SLOGE("ASEC finalize failed: couldn't construct mountPoint");
1143 result = android::vold::ext4::Mount(loopDevice, mountPoint,
1146 result = android::vold::vfat::Mount(loopDevice, mountPoint,
1164 char mountPoint[255];
1200 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1201 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1202 SLOGE("Unable remount to fix permissions for %s: couldn't construct mountpoint", id);
1211 int ret = android::vold::ext4::Mount(loopDevice, mountPoint,
1220 char *paths[] = { mountPoint, NULL };
1263 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC);
1265 SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno));
1273 result |= android::vold::ext4::Mount(loopDevice, mountPoint,
1292 char mountPoint[255];
1315 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id1);
1316 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1317 SLOGE("Rename failed: couldn't construct mountpoint");
1321 if (isMountpointMounted(mountPoint)) {
1327 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id2);
1328 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1333 if (isMountpointMounted(mountPoint)) {
1362 char mountPoint[255];
1375 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1376 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1377 SLOGE("ASEC unmount failed for %s: couldn't construct mountpoint", id);
1387 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force);
1391 char mountPoint[255];
1399 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash);
1400 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1401 SLOGE("OBB unmount failed for %s: couldn't construct mountpoint", fileName);
1405 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force);
1409 const char *fileName, const char *mountPoint, bool force) {
1410 if (!isMountpointMounted(mountPoint)) {
1418 rc = umount(mountPoint);
1439 Process::killProcessesWithOpenFiles(mountPoint, signal);
1452 if (!rmdir(mountPoint)) {
1456 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno));
1461 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno));
1498 char mountPoint[255];
1511 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1512 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1513 SLOGE("ASEC destroy failed for %s: couldn't construct mountpoint", id);
1517 if (isMountpointMounted(mountPoint)) {
1630 char mountPoint[255];
1643 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1644 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1645 SLOGE("ASEC mount failed for %s: couldn't construct mountpoint", id);
1649 if (isMountpointMounted(mountPoint)) {
1691 if (mkdir(mountPoint, 0000)) {
1693 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1709 result = android::vold::ext4::Mount(dmDevice, mountPoint,
1712 result = android::vold::vfat::Mount(dmDevice, mountPoint,
1736 char mountPoint[255];
1744 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash);
1745 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1746 SLOGE("OBB mount failed for %s: couldn't construct mountpoint", img);
1750 if (isMountpointMounted(mountPoint)) {
1786 if (mkdir(mountPoint, 0755)) {
1788 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1802 if (android::vold::vfat::Mount(dmDevice, mountPoint,