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

Should targetcli care about write-only attributes and/or parameters? #128

Open
gonzoleeman opened this issue Feb 19, 2019 · 0 comments
Open

Comments

@gonzoleeman
Copy link
Contributor

A recent kernel change made one of the attributes that targetcli cares about write-only, causing saveconfig to fale if there were any targets. This came about because of linux kernel commit:

6baca7601bde ("scsi: target: drop unused pi_prot_format attribute storage")

This commit was quickly fixed with another commit:

b6cd7f34ba135 ("scsi: target: make the pi_prot_format ConfigFS path readable")

but it pointed out that possibility of write-only sysfs attributes.

Because of this rtslib-fb was updated with 3 new commits to address this possibility:

6f17cf775ca9 Add 'readable' param to Group list_*() methods
ee005008acfe Handle write-only parameters like attributes
03c8c15983a2 Handle write-only attributes.

My question for you all is: Should we updated targetcli-fb to use this functionality?

There are several places in configshell-fb and targetcli-fb where it is just assumed that all attributes can be read, even if read-only. Looking at the code, it seems like it would take a bit of effort in both packages to handle this generic aberration, i.e. write-only attributes.

So does anyone think this is worth the effort of changing right now, considering the scarcity of such write-only attributes in the wild? It would be nice to know, since I'm a bit too busy to work on something that's not a real problem, even if interesting.

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

No branches or pull requests

1 participant