Skip to content

scst_vdisk: enable bind_alua_state for fileio devices#366

Merged
lnocturno merged 1 commit into
SCST-project:masterfrom
bmeagherix:add_fileio_bind_alua_state
May 15, 2026
Merged

scst_vdisk: enable bind_alua_state for fileio devices#366
lnocturno merged 1 commit into
SCST-project:masterfrom
bmeagherix:add_fileio_bind_alua_state

Conversation

@bmeagherix
Copy link
Copy Markdown
Contributor

Wire the on_alua_state_change_{start,finish} callbacks into vdisk_file_devtype and expose bind_alua_state as a sysfs attribute and create-time parameter for fileio. The callback bodies were already backing-agnostic; rename them from blockio_* to vdev_* to match.

Default bind_alua_state=0 for fileio (vs. 1 for blockio) to preserve existing behavior on upgrade. Adjust the sysfs show function to compare against the per-backing default so scstadmin persists explicit settings correctly.

Wire the on_alua_state_change_{start,finish} callbacks into
vdisk_file_devtype and expose bind_alua_state as a sysfs attribute
and create-time parameter for fileio. The callback bodies were
already backing-agnostic; rename them from blockio_* to vdev_* to
match.

Default bind_alua_state=0 for fileio (vs. 1 for blockio) to preserve
existing behavior on upgrade. Adjust the sysfs show function to
compare against the per-backing default so scstadmin persists
explicit settings correctly.
@lnocturno lnocturno merged commit e2c57de into SCST-project:master May 15, 2026
52 checks passed
@lnocturno
Copy link
Copy Markdown
Contributor

Hi Brian,

Thank you for the patch!

Gleb

@bmeagherix bmeagherix deleted the add_fileio_bind_alua_state branch May 15, 2026 11:09
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.

2 participants