* Do not try to prevent read-only partitions, we will/should initialize it
with BFS anyways. * Use the partition path, not the parent path. This also makes displaying IDs really superfluous. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -396,10 +396,6 @@ TargetVisitor::Visit(BDiskDevice *device)
|
|||||||
bool
|
bool
|
||||||
TargetVisitor::Visit(BPartition *partition, int32 level)
|
TargetVisitor::Visit(BPartition *partition, int32 level)
|
||||||
{
|
{
|
||||||
// TODO: This check does not work on non-mounted partitions!
|
|
||||||
if (partition->IsReadOnly())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
BPath path;
|
BPath path;
|
||||||
if (partition->GetPath(&path) == B_OK)
|
if (partition->GetPath(&path) == B_OK)
|
||||||
printf("TargetVisitor::Visit(BPartition *) : %s\n", path.Path());
|
printf("TargetVisitor::Visit(BPartition *) : %s\n", path.Path());
|
||||||
@@ -436,8 +432,7 @@ TargetVisitor::_MakeLabel(BPartition *partition, char *label, char *menuLabel)
|
|||||||
char size[15];
|
char size[15];
|
||||||
SizeAsString(partition->ContentSize(), size);
|
SizeAsString(partition->ContentSize(), size);
|
||||||
BPath path;
|
BPath path;
|
||||||
if (partition->Parent())
|
partition->GetPath(&path);
|
||||||
partition->Parent()->GetPath(&path);
|
|
||||||
|
|
||||||
sprintf(label, "%s - %s [%s] [%s]", partition->ContentName(),
|
sprintf(label, "%s - %s [%s] [%s]", partition->ContentName(),
|
||||||
size, partition->ContentType(), path.Path());
|
size, partition->ContentType(), path.Path());
|
||||||
|
|||||||
Reference in New Issue
Block a user