Lines Matching refs:volume
52 ERROR("PackageDaemon::Init(): failed to start volume watching: %s\n",
93 error = message->FindInt32("volume", &nodeRef.device);
119 // get the FS info and check whether this is a package FS volume at all
128 // create a volume
129 Volume* volume = new(std::nothrow) Volume(this);
130 if (volume == NULL)
132 ObjectDeleter<Volume> volumeDeleter(volume);
135 error = volume->Init(node_ref(info.dev, info.root), rootRef);
139 if (volume->MountType() == PACKAGE_FS_MOUNT_TYPE_CUSTOM) {
141 INFORM("skipping custom mounted volume at \"%s\"\n",
142 volume->Path().String());
146 // get the root for the volume and register it
152 error = root->RegisterVolume(volume);
159 INFORM("volume at \"%s\" registered\n", volume->Path().String());
166 PackageDaemon::_UnregisterVolume(Volume* volume)
168 volume->Unmounted();
170 INFORM("volume at \"%s\" unregistered\n", volume->Path().String());
172 Root* root = volume->GetRoot();
173 root->UnregisterVolume(volume);
247 if (Volume* volume = root->FindVolume(deviceID))
248 return volume;
262 // _RegisterVolume() also checks whether it is a package FS volume, so we
275 if (Volume* volume = _FindVolume(device))
276 _UnregisterVolume(volume);