Tracker: Filter out 0 capacity volumes from Targets.
This includes the "config" and "system" pseudo-volumes. Change-Id: I3e1f19e1926dc45b801e38dbe5cdf34700addea5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9742 Reviewed-by: nephele nephele <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -2482,7 +2482,7 @@ FindPanel::AddVolumes()
|
|||||||
BVolume volume;
|
BVolume volume;
|
||||||
roster.Rewind();
|
roster.Rewind();
|
||||||
while (roster.GetNextVolume(&volume) == B_OK) {
|
while (roster.GetNextVolume(&volume) == B_OK) {
|
||||||
if (volume.IsPersistent() && volume.KnowsQuery()) {
|
if (volume.IsPersistent() && volume.Capacity() > 0 && volume.KnowsQuery()) {
|
||||||
BDirectory root;
|
BDirectory root;
|
||||||
if (volume.GetRootDirectory(&root) != B_OK)
|
if (volume.GetRootDirectory(&root) != B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user