Lines Matching refs:volume
200 /*! \brief Returns whether the volume is mounted.
201 \return \c true, if the volume is mounted, \c false otherwise.
208 // return _PartitionData()->volume >= 0;
280 name.SetToFormat("%g %ciB %s volume", size / 10, unit, _PartitionData()->content_type);
395 \param volume Pointer to a pre-allocated BVolume, to be initialized to
396 represent the volume.
397 \return \c B_OK, if the volume is mounted and the parameter could be set
401 BPartition::GetVolume(BVolume* volume) const
403 if (volume == NULL)
406 return volume->SetTo(_PartitionData()->volume);
431 // mounted: get the icon from the volume
432 BVolume volume;
433 error = GetVolume(&volume);
435 error = volume.GetIcon(icon, which);
460 // mounted: get the icon from the volume
461 BVolume volume;
462 error = GetVolume(&volume);
464 error = volume.GetIcon(_data, _size, _type);
500 BVolume volume;
501 if (GetVolume(&volume) == B_OK) {
503 status_t error = volume.GetRootDirectory(&dir);
510 // get the volume name
515 volumeName = "unnamed volume";
517 // construct a path name from the volume name
543 /*! \brief Mounts the volume.
545 The volume can only be mounted, if the partition contains a recognized
549 root directory (derived from the volume name). If one is given, the
556 forces the volume to be mounted read-only.
616 /*! \brief Unmounts the volume.
618 The volume can of course only be unmounted, if it currently is mounted.
1377 || data->volume != oldData->volume