Closed mvollmer closed 1 month ago
We've reproduced this behavior.
We have reproduced, using a test that makes use of the monitor-dbus test script:
Our test that automatically uses the dbus monitor script did not report any discrepancy. However, it writes the data all at once, instead of in 128KiB iterations. Since it did not report an error we can conclude that for the test either:
We have an idea of why this is happening, which is that the Used
property signal gets sent out generally only when the Size
property signal gets sent out as well, and, of course, that property is updated less frequently. ~But that hypothesis does not explain the observed behavior of the Used property getting the correct value.~ We know why that is correct.
I believe the fix can be localized to the check_fs
and handle_extension
methods.
When slowing filling a filesystem with data, the value of org.storage.stratis3.filesystem.r*.Used is updated periodically (as expected), but there are no change notifications for that.
There are notifications when org.storage.stratis3.pool.r*.TotalPhysicalUsed every 10 seconds, and I would expect to get notifications for filesystem.Used at the same time.
stratisd-3.6.7-1.fc40.x86_64
Here is the output of D-Bus monitor. You can see the notifications for pool.TotalPhysicalUsed in there, bot nothing for filesystem.Used.
stratis-used.log