Lines Matching defs:volume

370 		// turn on volume node monitor, metamime monitor, etc.
760 BVolume volume(TargetModel()->NodeRef()->device);
761 if (volume.InitCheck() != B_OK)
765 && (volume.IsReadOnly() || !volume.KnowsAttr())) {
1580 BVolume volume;
1599 while (roster.GetNextVolume(&volume) == B_OK) {
1600 if (!volume.IsPersistent())
1603 if (volume.IsShared() && !mountShared)
1606 CreateVolumePose(&volume, watchIndividually);
1648 BVolume volume;
1649 while (volRoster.GetNextVolume(&volume) == B_OK) {
1650 if (!volume.IsPersistent())
1655 if (FSGetTrashDir(&trashDir, volume.Device()) == B_OK
1693 BPoseView::CreateVolumePose(BVolume* volume, bool watchIndividually)
1695 if (volume->InitCheck() != B_OK || !volume->IsPersistent()) {
1702 if (volume->GetRootDirectory(&root) != B_OK)
1711 // If the volume is mounted at a directory of a persistent volume, we don't
1726 // make sure volume names still get watched, even though
1737 BVolume volume;
1738 if (BVolumeRoster().GetBootVolume(&volume) == B_OK) {
1742 if (FSGetTrashDir(&trash, volume.Device()) == B_OK
5095 // can't copy to read-only volume
5478 // is that of the volume but the device is of the parent
5479 // not the same as the device of the volume that way we
5516 BVolume volume(device);
5517 if (volume.InitCheck() == B_OK)
5518 CreateVolumePose(&volume, false);
5520 // add trash items from newly mounted volume
5524 BVolume volume(device);
5525 if (FSGetTrashDir(&trashDir, volume.Device()) == B_OK
5538 // to a volume would get initialized as a symlink to a directory
5548 // close the window from a volume that is gone
5657 // handle special case of notifying a name change for a volume
5658 // - the notification is not enough, because the volume's device
5660 // lookup using the new volume name and get the volume device from there
5669 // point the dirNode to the actual volume
6055 // If there is a volume or trash folder, remove them from the list
6062 // can't duplicate a volume or the trash
6193 BVolume volume (ref->device);
6194 if (volume.IsReadOnly()) {
6197 "volume."), B_TRANSLATE("Cancel"), NULL, NULL, B_WIDTH_AS_USUAL,
8359 BVolume volume(model->NodeRef()->device);
8360 if (volume != boot) {
8366 message.AddInt32("device_id", volume.Device());
8867 BVolume volume;
8875 // to be read-only if any item's volume is read-only
8884 volume.SetTo(nref.device);
8885 if (volume.InitCheck() == B_OK && volume.IsReadOnly())
8890 // only check first item's volume, assume rest are the same
8894 volume.SetTo(nref.device);
8897 // no items selected, check target volume instead
8898 volume.SetTo(TargetModel()->NodeRef()->device);
8901 return volume.InitCheck() == B_OK && volume.IsReadOnly();
8909 BVolume volume(target->NodeRef()->device);
8913 || (volume.InitCheck() == B_OK && volume.IsReadOnly());