Skip to content
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

Disk activity widget inactive - Tumbleweed #2844 #2880

Conversation

phillxnet
Copy link
Member

Add filter to /proc/diskstats excluding block loopback major device 7. This avoids a failed byid_name lookup via byid_disk_map() as loop* block devices do not have byid names, and are not devices of interest.

Includes

  • Additional sanity check on diskstats re ignoring < 14 columns.
  • Filter out SCSI CD-ROM and Floppy disks re /proc/diskstats.
  • Associated comment & TODO updates/additions.
  • Minor type hint improvement.
  • Updated get_byid_name_map() test data re newer kernels.

Fixes #2844

Add filter to `/proc/diskstats` excluding block loopback major
device 7. This avoids a failed byid_name lookup via
byid_disk_map() as loop* block devices do not have byid names,
and are not devices of interest.

Includes
- Additional sanity check on diskstats re ignoring < 14 columns.
- Filter out SCSI CD-ROM and Floppy disks re /proc/diskstats.
- Associated comment & TODO updates/additions.
- Minor type hint improvement.
- Updated get_byid_name_map() test data re newer kernels.
@phillxnet
Copy link
Member Author

Testing

Two rpms were build on TW and Leap 15.6 (both X86_64) and both resulting installs had functional "Disk Activity" widgets on the Dashboard:

Leap 15.6

Test against regression as this already worked.
Leap15 6-disk-activity-widget

Tumbleweed

Prior reproducer system for no activity in "Disk Activity" widget:
tumbleweed-disk-activity-widget

@phillxnet phillxnet merged commit 2ecd4df into rockstor:testing Jul 26, 2024
@phillxnet phillxnet deleted the 2844-Disk-activity-widget-inactive---Tumbleweed branch July 26, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant