mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
* 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:
parent
11efbf0160
commit
35c3b2d2a1
@ -396,10 +396,6 @@ TargetVisitor::Visit(BDiskDevice *device)
|
||||
bool
|
||||
TargetVisitor::Visit(BPartition *partition, int32 level)
|
||||
{
|
||||
// TODO: This check does not work on non-mounted partitions!
|
||||
if (partition->IsReadOnly())
|
||||
return false;
|
||||
|
||||
BPath path;
|
||||
if (partition->GetPath(&path) == B_OK)
|
||||
printf("TargetVisitor::Visit(BPartition *) : %s\n", path.Path());
|
||||
@ -436,8 +432,7 @@ TargetVisitor::_MakeLabel(BPartition *partition, char *label, char *menuLabel)
|
||||
char size[15];
|
||||
SizeAsString(partition->ContentSize(), size);
|
||||
BPath path;
|
||||
if (partition->Parent())
|
||||
partition->Parent()->GetPath(&path);
|
||||
partition->GetPath(&path);
|
||||
|
||||
sprintf(label, "%s - %s [%s] [%s]", partition->ContentName(),
|
||||
size, partition->ContentType(), path.Path());
|
||||
|
Loading…
x
Reference in New Issue
Block a user