Home | History | Annotate | Download | only in vold

Lines Matching full:mountpoint

512         char mountPoint[255];
514 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
515 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
516 SLOGE("ASEC fs format failed: couldn't construct mountPoint");
526 formatStatus = Ext4::format(dmDevice, numImgSectors, mountPoint);
541 if (mkdir(mountPoint, 0000)) {
543 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
555 mountStatus = Ext4::doMount(dmDevice, mountPoint, false, false, false);
557 mountStatus = Fat::doMount(dmDevice, mountPoint
572 int dirfd = open(mountPoint, O_DIRECTORY);
576 SLOGI("Cannot chown/chmod new ASEC mount point %s", mountPoint);
591 char mountPoint[255];
605 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
606 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
607 SLOGE("ASEC resize failed for %s: couldn't construct mountpoint", id);
611 if (isMountpointMounted(mountPoint)) {
735 char mountPoint[255];
766 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
767 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
768 SLOGE("ASEC finalize failed: couldn't construct mountPoint");
774 result = Ext4::doMount(loopDevice, mountPoint, true, true, true);
776 result = Fat::doMount(loopDevice, mountPoint, true, true, true, 0, 0, 0227, false);
793 char mountPoint[255];
829 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
830 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
831 SLOGE("Unable remount to fix permissions for %s: couldn't construct mountpoint", id);
840 int ret = Ext4::doMount(loopDevice, mountPoint,
849 char *paths[] = { mountPoint, NULL };
892 int dirfd = open(mountPoint, O_DIRECTORY);
894 SLOGE("Couldn't change owner of existing directory %s: %s", mountPoint, strerror(errno));
902 result |= Ext4::doMount(loopDevice, mountPoint,
921 char mountPoint[255];
944 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id1);
945 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
946 SLOGE("Rename failed: couldn't construct mountpoint");
950 if (isMountpointMounted(mountPoint)) {
956 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id2);
957 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
962 if (isMountpointMounted(mountPoint)) {
991 char mountPoint[255];
1004 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1005 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1006 SLOGE("ASEC unmount failed for %s: couldn't construct mountpoint", id);
1016 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force);
1020 char mountPoint[255];
1028 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1029 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1030 SLOGE("OBB unmount failed for %s: couldn't construct mountpoint", fileName);
1034 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force);
1038 const char *fileName, const char *mountPoint, bool force) {
1039 if (!isMountpointMounted(mountPoint)) {
1047 rc = umount(mountPoint);
1068 Process::killProcessesWithOpenFiles(mountPoint, action);
1081 if (!rmdir(mountPoint)) {
1085 SLOGW("Failed to rmdir %s (%s)", mountPoint, strerror(errno));
1090 SLOGE("Timed out trying to rmdir %s (%s)", mountPoint, strerror(errno));
1127 char mountPoint[255];
1140 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1141 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1142 SLOGE("ASEC destroy failed for %s: couldn't construct mountpoint", id);
1146 if (isMountpointMounted(mountPoint)) {
1263 char mountPoint[255];
1276 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1277 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1278 SLOGE("ASEC mount failed for %s: couldn't construct mountpoint", id);
1282 if (isMountpointMounted(mountPoint)) {
1324 if (mkdir(mountPoint, 0000)) {
1326 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1342 result = Ext4::doMount(dmDevice, mountPoint, readOnly, false, readOnly);
1344 result = Fat::doMount(dmDevice, mountPoint, readOnly, false, readOnly, ownerUid, 0, 0222, false);
1367 const char* mountPoint = (*i)->getFuseMountpoint();
1368 if (!strncmp(fileName, mountPoint, strlen(mountPoint))) {
1380 char mountPoint[255];
1388 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1389 if ((written < 0) || (size_t(written) >= sizeof(mountPoint))) {
1390 SLOGE("OBB mount failed for %s: couldn't construct mountpoint", img);
1394 if (isMountpointMounted(mountPoint)) {
1429 if (mkdir(mountPoint, 0755)) {
1431 SLOGE("Mountpoint creation failed (%s)", strerror(errno));
1440 if (Fat::doMount(dmDevice, mountPoint, true, false, true, 0, ownerGid,