projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
186cdcf
)
Add NBD_CMD_TRIM to getcommandname
author
Wouter Verhelst
<w@uter.be>
Wed, 21 Nov 2012 21:26:01 +0000
(22:26 +0100)
committer
Wouter Verhelst
<w@uter.be>
Wed, 21 Nov 2012 21:27:36 +0000
(22:27 +0100)
Discovered-By: Nicolas Trangez
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index 49822a70786224c2dd3652d0d7a1db741708445d..9d16d18043a8be8f5c8c92562e466f5ef0b24ed2 100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-303,10
+303,11
@@
static inline const char * getcommandname(uint64_t command) {
return "NBD_CMD_DISC";
case NBD_CMD_FLUSH:
return "NBD_CMD_FLUSH";
+ case NBD_CMD_TRIM:
+ return "NBD_CMD_TRIM";
default:
-
break
;
+
return "UNKNOWN"
;
}
- return "UNKNOWN";
}
/**