Home | History | Annotate | Download | only in vold

Lines Matching refs:mountPoint

402         char mountPoint[255];
404 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
405 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
406 SLOGE("ASEC fs format failed: couldn't construct mountPoint");
416 formatStatus = Ext4::format(dmDevice, mountPoint);
431 if (mkdir(mountPoint, 0000)) {
433 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
445 mountStatus = Ext4::doMount(dmDevice, mountPoint, false, false, false);
447 mountStatus = Fat::doMount(dmDevice, mountPoint, false, false, false, ownerUid, 0, 0000,
462 int dirfd = open(mountPoint, O_DIRECTORY);
466 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint);
482 char mountPoint[255];
507 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
508 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
509 SLOGE("ASEC finalize failed: couldn't construct mountPoint");
515 result = Ext4::doMount(loopDevice, mountPoint, true, true, true);
517 result = Fat::doMount(loopDevice, mountPoint, true, true, true, 0, 0, 0227, false);
534 char mountPoint[255];
564 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
565 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
566 SLOGE("Unable remount to fix permissions for %s: couldn't construct mountpoint", id);
575 int ret = Ext4::doMount(loopDevice, mountPoint,
584 char *paths[] = { mountPoint, NULL };
621 int dirfd = open(mountPoint, O_DIRECTORY);
623 SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno));
631 result |= Ext4::doMount(loopDevice, mountPoint,
650 char mountPoint[255];
661 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id1);
662 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
663 SLOGE("Rename failed: couldn't construct mountpoint");
667 if (isMountpointMounted(mountPoint)) {
673 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id2);
674 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
679 if (isMountpointMounted(mountPoint)) {
708 char mountPoint[255];
715 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
716 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
717 SLOGE("ASEC unmount failed for %s: couldn't construct mountpoint", id);
727 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force);
731 char mountPoint[255];
739 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
740 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
741 SLOGE("OBB unmount failed for %s: couldn't construct mountpoint", fileName);
745 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force);
749 const char *fileName, const char *mountPoint, bool force) {
750 if (!isMountpointMounted(mountPoint)) {
758 rc = umount(mountPoint);
779 Process::killProcessesWithOpenFiles(mountPoint, action);
792 if (!rmdir(mountPoint)) {
796 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno));
801 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno));
832 char mountPoint[255];
839 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
840 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
841 SLOGE("ASEC destroy failed for %s: couldn't construct mountpoint", id);
845 if (isMountpointMounted(mountPoint)) {
924 char mountPoint[255];
931 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
932 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
933 SLOGE("ASEC mount failed: couldn't construct mountpoint", id);
937 if (isMountpointMounted(mountPoint)) {
1006 if (mkdir(mountPoint, 0000)) {
1008 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1032 result = Ext4::doMount(dmDevice, mountPoint, true, false, true);
1034 result = Fat::doMount(dmDevice, mountPoint, true, false, true, ownerUid, 0, 0222, false);
1057 const char* mountPoint = (*i)->getFuseMountpoint();
1058 if (!strncmp(fileName, mountPoint, strlen(mountPoint))) {
1070 char mountPoint[255];
1078 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1079 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1080 SLOGE("OBB mount failed: couldn't construct mountpoint", img);
1084 if (isMountpointMounted(mountPoint)) {
1146 if (mkdir(mountPoint, 0755)) {
1148 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1157 if (Fat::doMount(dmDevice, mountPoint, true, false, true, 0, ownerGid,