Home | History | Annotate | Download | only in vold

Lines Matching full:mountpoint

886         char mountPoint[255];
888 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
889 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
890 SLOGE("ASEC fs format failed: couldn't construct mountPoint");
900 formatStatus = android::vold::ext4::Format(dmDevice, numImgSectors, mountPoint);
915 if (mkdir(mountPoint, 0000)) {
917 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
929 mountStatus = android::vold::ext4::Mount(dmDevice, mountPoint,
932 mountStatus = android::vold::vfat::Mount(dmDevice, mountPoint,
947 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC);
951 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint);
966 char mountPoint[255];
980 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
981 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
982 SLOGE("ASEC resize failed for %s: couldn't construct mountpoint", id);
986 if (isMountpointMounted(mountPoint)) {
1110 char mountPoint[255];
1141 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1142 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1143 SLOGE("ASEC finalize failed: couldn't construct mountPoint");
1149 result = android::vold::ext4::Mount(loopDevice, mountPoint,
1152 result = android::vold::vfat::Mount(loopDevice, mountPoint,
1170 char mountPoint[255];
1206 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1207 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1208 SLOGE("Unable remount to fix permissions for %s: couldn't construct mountpoint", id);
1217 int ret = android::vold::ext4::Mount(loopDevice, mountPoint,
1226 char *paths[] = { mountPoint, NULL };
1269 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC);
1271 SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno));
1279 result |= android::vold::ext4::Mount(loopDevice, mountPoint,
1298 char mountPoint[255];
1321 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id1);
1322 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1323 SLOGE("Rename failed: couldn't construct mountpoint");
1327 if (isMountpointMounted(mountPoint)) {
1333 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id2);
1334 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1339 if (isMountpointMounted(mountPoint)) {
1368 char mountPoint[255];
1381 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1382 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1383 SLOGE("ASEC unmount failed for %s: couldn't construct mountpoint", id);
1393 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force);
1397 char mountPoint[255];
1405 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash);
1406 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1407 SLOGE("OBB unmount failed for %s: couldn't construct mountpoint", fileName);
1411 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force);
1415 const char *fileName, const char *mountPoint, bool force) {
1416 if (!isMountpointMounted(mountPoint)) {
1424 rc = umount(mountPoint);
1445 Process::killProcessesWithOpenFiles(mountPoint, signal);
1458 if (!rmdir(mountPoint)) {
1462 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno));
1467 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno));
1504 char mountPoint[255];
1517 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1518 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1519 SLOGE("ASEC destroy failed for %s: couldn't construct mountpoint", id);
1523 if (isMountpointMounted(mountPoint)) {
1636 char mountPoint[255];
1649 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::ASECDIR, id);
1650 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1651 SLOGE("ASEC mount failed for %s: couldn't construct mountpoint", id);
1655 if (isMountpointMounted(mountPoint)) {
1697 if (mkdir(mountPoint, 0000)) {
1699 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1715 result = android::vold::ext4::Mount(dmDevice, mountPoint,
1718 result = android::vold::vfat::Mount(dmDevice, mountPoint,
1742 char mountPoint[255];
1750 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash);
1751 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1752 SLOGE("OBB mount failed for %s: couldn't construct mountpoint", img);
1756 if (isMountpointMounted(mountPoint)) {
1792 if (mkdir(mountPoint, 0755)) {
1794 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1808 if (android::vold::vfat::Mount(dmDevice, mountPoint,