Page MenuHomeFreeBSD

Export the current da flags as bitfield
ClosedPublic

Authored by imp on Jan 29 2020, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 21 2024, 9:40 PM
Unknown Object (File)
Sep 16 2024, 6:12 PM
Unknown Object (File)
Sep 8 2024, 1:47 PM
Unknown Object (File)
Sep 6 2024, 3:20 AM
Unknown Object (File)
Sep 5 2024, 4:27 PM
Unknown Object (File)
Sep 4 2024, 4:38 PM
Unknown Object (File)
Aug 30 2024, 8:16 PM
Unknown Object (File)
Aug 21 2024, 9:41 PM
Subscribers
None

Details

Summary

Export the current flags. They can be useful to other programs wanting to do
special thigns for removable or similar devices.

Convert rotating to a DA flag

Rotating is really a da flag. Convert it to a flag so it will be reported with
the other flags for the device. Deprecate the .rotating sysctl in FreeBSD 14.

Make unmapped I/O a flag as well

Although it's really a flag on the underlying disk, add it to the softc flags as
well since we report the unmapped status as a sysctl. This will let us retire
that as well in the future.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29026
Build 26994: arc lint + arc unit

Event Timeline

scottl requested changes to this revision.Jan 30 2020, 1:54 AM

My recommendation is to change the rotating and unmapped sysctls to be SYSCTL_PROC, and have them read the flag. That way you can retire the fields out of the softc now.

This revision now requires changes to proceed.Jan 30 2020, 1:54 AM

Also, this should be MFC'd to 12 and even 11. With that, you can remove in 13 instead of waiting for 14

Update, per scottl

Add a sysctl flag to int function. Maybe this should be in kern_sysctl.c

This revision was not accepted when it landed; it landed in state Needs Review.Feb 13 2020, 1:23 AM
This revision was automatically updated to reflect the committed changes.