-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[storage] [lint] Start enforcing lint errors #197
Conversation
name, count, comments, ... see opiproject#195 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@@ -109,3 +83,27 @@ message NVMfRemoteControllerStatsResponse { | |||
string stats = 2; | |||
} | |||
|
|||
enum NvmeTransportType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -192,13 +188,13 @@ message NVMeNamespace { | |||
|
|||
// Size/Capacity of the namespace in blocks, size in bytes will | |||
// be BlockSize x NumBlocks. | |||
int64 num_blocks = 6; | |||
int64 blocks_count = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -30,11 +29,10 @@ message AioController { | |||
// handle will be returned with created object | |||
common.v1.ObjectKey handle = 1; | |||
|
|||
string name = 2; | |||
int64 block_size = 3; | |||
int64 num_blocks = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -25,10 +24,9 @@ service NullDebugService { | |||
|
|||
message NullDebug { | |||
int64 id = 1; | |||
string name = 2; | |||
int64 block_size = 3; | |||
int64 num_blocks = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -33,31 +30,8 @@ message NVMfRemoteController { | |||
bool hdgst = 7; | |||
bool ddgst = 8; | |||
NvmeMultipath multipath = 9; | |||
int64 num_io_queues = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -24,7 +24,7 @@ message NvmeControllerPciId { | |||
int32 device = 2; | |||
|
|||
// Physical function, always set to 0 in current model | |||
int32 function = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -152,7 +149,7 @@ message NVMeController { | |||
// If not set, the xPU will provide a default. | |||
int32 max_nsq = 5; | |||
|
|||
// maximum number of host completion queues allowed. Optional. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
// Globally unique identifier for the namespace | ||
string nguid = 7; | ||
|
||
// 64bit Extended unique identifier for the namespace | ||
// mandatory if guid is not specified, optional otherwise | ||
// mandatory if guid is not specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -15,5 +15,6 @@ all: | |||
curl -kL https://github.com/googleapis/googleapis/archive/master.tar.gz | tar --strip=1 -zxvf - googleapis-master/google/api | |||
mv google "${PWD}"/v1alpha1/ | |||
docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../common/v1":/common -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common /out/*.proto --output-format summary" | |||
docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../common/v1":/common -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common /out/*.proto --output-format github --disable-rule=core::0192::has-comments --disable-rule=core::0136 --disable-rule=core::0127 --set-exit-status" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nice to document the rules being ignored and why. But not a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wanted to start enforcing rules, so ignore is temp thing, eventually nothing will be ignored, thanks @seroyer
see opiproject/opi-api#197 see opiproject/opi-api#199 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
see opiproject/opi-api#197 see opiproject/opi-api#199 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
see opiproject/opi-api#197 see opiproject/opi-api#199 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
see opiproject/opi-api#197 see opiproject/opi-api#199 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
name, count, comments, ... see #195
Signed-off-by: Boris Glimcher Boris.Glimcher@emc.com