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

[WIP] Remove lio_iblock usage in lio-t implementation of iSCSILogicalUnit #1476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fpiecka
Copy link

@fpiecka fpiecka commented Apr 6, 2020

lio_iblock parameter is used in iSCSILogicalUnit_start(), although it is unsupported in lio-t implementation (see iSCSILogicalUnit_validate()).

This PR removes the use of lio_iblock and instead tries to autodetect the backstore index (for lio-t only).

Indexes are assigned sequentially and their value depends on the order in which the backstores are created by targetcli (i.e. on the order in which resources are started).

In current implementation, only 1 LUN resource based on lio-t works (tested in CentOS 8). The second one fails to start as it has a higher index than 0.

I believe this PR should resolve #1256.

…on of backstore index in lio-t implementation.
@knet-ci-bot
Copy link

Can one of the admins verify this patch?

@fpiecka
Copy link
Author

fpiecka commented Apr 6, 2020

This PR seems a bit unambitios when compared with #1072 which would solve the problem too. I'll ask the author whether ho could resolve the conflicts.

@fpiecka fpiecka changed the title Remove lio_iblock usage in lio-t implementation of iSCSILogicalUnit [WIP] Remove lio_iblock usage in lio-t implementation of iSCSILogicalUnit Apr 6, 2020
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.

iSCSILogicalUnit don't set the correct sn
2 participants