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:
John Scipione
2026-04-13 03:07:45 +00:00
parent 144088eaec
commit adf70d6201
+1 -1
View File
@@ -2482,7 +2482,7 @@ FindPanel::AddVolumes()
BVolume volume;
roster.Rewind();
while (roster.GetNextVolume(&volume) == B_OK) {
if (volume.IsPersistent() && volume.KnowsQuery()) {
if (volume.IsPersistent() && volume.Capacity() > 0 && volume.KnowsQuery()) {
BDirectory root;
if (volume.GetRootDirectory(&root) != B_OK)
continue;