Add trim support.

This commit is contained in:
comatose 2012-12-01 14:35:46 +09:00
parent 01919ef8a1
commit 44b2f13ad4
1 changed files with 1 additions and 0 deletions

1
buse.c
View File

@ -163,6 +163,7 @@ int buse_main(int argc, char *argv[], const struct buse_operations *aop, void *u
break;
case NBD_CMD_TRIM:
aop->trim(from, len);
write_all(sk, &reply, sizeof(struct nbd_reply));
break;
default:
assert(0);