Tracker: Skip 0 capacity volumes from Trash.
(system & packages) Change-Id: I62ac9c4496f357de00d3c1579f22b7fda2728ea4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10636 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0f098ae692
commit
3d8e280ccf
@@ -1686,7 +1686,7 @@ BPoseView::AddTrashPoses()
|
|||||||
volRoster.Rewind();
|
volRoster.Rewind();
|
||||||
BVolume volume;
|
BVolume volume;
|
||||||
while (volRoster.GetNextVolume(&volume) == B_OK) {
|
while (volRoster.GetNextVolume(&volume) == B_OK) {
|
||||||
if (!volume.IsPersistent())
|
if (!volume.IsPersistent() || volume.Capacity() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BDirectory trashDir;
|
BDirectory trashDir;
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ BTrashWatcher::WatchTrashDirs()
|
|||||||
volRoster.Rewind();
|
volRoster.Rewind();
|
||||||
BVolume volume;
|
BVolume volume;
|
||||||
while (volRoster.GetNextVolume(&volume) == B_OK) {
|
while (volRoster.GetNextVolume(&volume) == B_OK) {
|
||||||
if (volume.IsReadOnly() || !volume.IsPersistent())
|
if (volume.IsReadOnly() || !volume.IsPersistent() || volume.Capacity() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BDirectory trashDir;
|
BDirectory trashDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user