-
Notifications
You must be signed in to change notification settings - Fork 47
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
consistent naming #14
Comments
IMO I think it is fine if we use both |
In that case, I think it makes sense to use IMO, I agree with mirroring the RPCs for the CLI commands. |
Can the same namespace be added to different subsystems? If yes, then "add" looks better than "create". Otherwise I would prefer "create" (although I don't have a strong opinion). The same is for the listener. |
I guess these are semantically |
As decided in #31, the RPCs use a consistent naming scheme which is mirrored in CLI commands. The scheme follows |
The gateway service RPCs such as
bdev_rbd_create
,nvmf_delete_subsystem
, andnvmf_subsystem_remove_host
were originally implemented as 1:1 in naming to SPDK methods. As a result, these names use both create and add as well as delete and remove. These words have different connotations, but we may want to rename these methods to be more consistent.action_prefix + component
or should they mirror SPDK methods?Additionally, the cli commands do not necessarily need to match the target RPCs, but we may want consistency in the naming of these as well. Currently, the cli commands follow the scheme
action_prefix + component
with the prefixescreate_
delete_
andget_
, and there's been discussion in #9 about the need foradd_
in the case of adding hosts to a subsystem.The purpose of this issue is to discuss the best plan for consistent naming for both cli commands and RPCs.
The text was updated successfully, but these errors were encountered: