Now prints "<unknown>" as the name of unrecognized file/partitioning systems.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-05-26 20:13:33 +00:00
parent b674940baa
commit 96cfeb706a

View File

@ -206,13 +206,16 @@ struct PrintPartitionsVisitor : public BDiskDeviceVisitor {
name = "";
}
}
const char *type = partition->ContentType();
if (type == NULL)
type = "<unknown>";
BPath path;
if (partition->IsMounted())
partition->GetMountPoint(&path);
printf("%-16s %-20s %s\n",
name, partition->ContentType(), partition->IsMounted() ? path.Path() : "");
name, type, partition->IsMounted() ? path.Path() : "");
return false;
}