New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No change notification for o.fd.UDisks2.Filesystem.Size anymore #1008
Comments
Ah right, it was changed to be on demand only. I knew why I wasn't convinced to push this change to stable... Hmm, hmm, the problem was an endless uevent storm so we had to decouple that. Caused by certain filesystems that generate extra uevent once you retrieve the filesystem size. And we simply can't refresh the fs size as a result of a uvent, no matter how delayed the refresh would be. The change to the behaviour was a compromise between changing the API, deprecation and introducing a getter method. If it's suitable for your use case, can you just use the built-in |
I think we really should fix dumpe2fs or stop using it. Here is a potential fix: tytso/e2fsprogs#122 To stop using it, libblockdev could use libext2fs directly instead of spawning dumpe2fs. That's probably a good idea in general. I'll have a stab at that. |
Here is my first toy program, looks promising:
|
Nice! One other major reason for making the property value retrieval on demand was to relieve I/O traffic. In practice, all other properties were retrieved from the (cached) udev database. In small systems this was not a big issue, the problem was daemon startup and first enumeration in case of large number of block devices. We've had bugreports about the daemon not starting up in a reasonable time (30+ sec.) when autostarted from a first D-Bus call, resulting in the |
Related: libblkid now has two new filesystem properties/tags: |
Nice! |
I've tried to hack a fix for the property change notification - see #1042. |
I think we lost the property change notifications with #949, no?
The text was updated successfully, but these errors were encountered: