Lines Matching defs:mountPoint
398 char mountPoint[255];
400 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
401 if (mkdir(mountPoint, 0000)) {
415 mountStatus = Ext4::doMount(dmDevice, mountPoint, false, false, false);
417 mountStatus = Fat::doMount(dmDevice, mountPoint, false, false, false, ownerUid, 0, 0000,
432 int dirfd = open(mountPoint, O_DIRECTORY);
436 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint);
452 char mountPoint[255];
477 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
481 result = Ext4::doMount(loopDevice, mountPoint, true, true, true);
483 result = Fat::doMount(loopDevice, mountPoint, true, true, true, 0, 0, 0227, false);
500 char mountPoint[255];
530 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
537 int ret = Ext4::doMount(loopDevice, mountPoint,
546 char *paths[] = { mountPoint, NULL };
583 int dirfd = open(mountPoint, O_DIRECTORY);
585 SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno));
593 result |= Ext4::doMount(loopDevice, mountPoint,
612 char mountPoint[255];
623 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id1);
624 if (isMountpointMounted(mountPoint)) {
630 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id2);
631 if (isMountpointMounted(mountPoint)) {
660 char mountPoint[255];
667 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
675 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force);
679 char mountPoint[255];
687 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
689 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force);
693 const char *fileName, const char *mountPoint, bool force) {
694 if (!isMountpointMounted(mountPoint)) {
702 rc = umount(mountPoint);
723 Process::killProcessesWithOpenFiles(mountPoint, action);
736 if (!rmdir(mountPoint)) {
740 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno));
745 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno));
776 char mountPoint[255];
783 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
785 if (isMountpointMounted(mountPoint)) {
863 char mountPoint[255];
870 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
872 if (isMountpointMounted(mountPoint)) {
941 if (mkdir(mountPoint, 0000)) {
967 result = Ext4::doMount(dmDevice, mountPoint, true, false, true);
969 result = Fat::doMount(dmDevice, mountPoint, true, false, true, ownerUid, 0, 0222, false);
992 const char* mountPoint = (*i)->getMountpoint();
993 if (!strncmp(fileName, mountPoint, strlen(mountPoint))) {
1005 char mountPoint[255];
1013 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1015 if (isMountpointMounted(mountPoint)) {
1077 if (mkdir(mountPoint, 0755)) {
1088 if (Fat::doMount(dmDevice, mountPoint, true, false, true, 0, ownerGid,