Home | History | Annotate | Download | only in vold

Lines Matching refs:Volume

37         Volume(vm, rec, flags) {
53 snprintf(mount, PATH_MAX, "%s/%s", Volume::MEDIA_DIR, rec->label);
55 snprintf(mount, PATH_MAX, "%s/%s", Volume::FUSE_DIR, rec->label);
58 setState(Volume::State_NoMedia);
87 setState(Volume::State_Shared);
91 setState(Volume::State_Idle);
122 if (getState() == Volume::State_Idle) {
126 "Volume %s %s disk inserted (%d:%d)", getLabel(),
177 setState(Volume::State_Idle);
183 setState(Volume::State_Pending);
229 if (getState() != Volume::State_Formatting) {
230 setState(Volume::State_Idle);
251 SLOGI("Volume %s disk has changed", getLabel());
267 if (getState() != Volume::State_Formatting) {
269 setState(Volume::State_Idle);
271 setState(Volume::State_Pending);
279 SLOGD("Volume %s %s partition %d:%d changed\n", getLabel(), getMountpoint(), major, minor);
292 SLOGD("Volume %s %s disk %d:%d removed\n", getLabel(), getMountpoint(), major, minor);
293 snprintf(msg, sizeof(msg), "Volume %s %s disk removed (%d:%d)",
297 setState(Volume::State_NoMedia);
306 SLOGD("Volume %s %s partition %d:%d removed\n", getLabel(), getMountpoint(), major, minor);
315 if (state != Volume::State_Mounted && state != Volume::State_Shared) {
329 snprintf(msg, sizeof(msg), "Volume %s %s bad removal (%d:%d)",
334 if (Volume::unmountVol(true, false)) {
335 SLOGE("Failed to unmount volume on bad removal (%s)",
341 } else if (state == Volume::State_Shared) {
343 snprintf(msg, sizeof(msg), "Volume %s bad removal (%d:%d)",
349 SLOGE("Failed to unshare volume on bad removal (%s)",
400 SLOGE("Cannot change path if there are more than one for a volume\n");