Skip to content

Commit

Permalink
add discard support for vhd
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lanzano committed Sep 19, 2018
1 parent 278efd0 commit 89283c1
Show file tree
Hide file tree
Showing 22 changed files with 630 additions and 152 deletions.
4 changes: 3 additions & 1 deletion control/tap-ctl-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
#include "tap-ctl.h"

int tap_ctl_info(pid_t pid, unsigned long long *sectors,
unsigned int *sector_size, unsigned int *info, const int minor)
unsigned int *sector_size, unsigned int *info,
bool *discard, const int minor)
{
tapdisk_message_t message;
int err;
Expand All @@ -60,6 +61,7 @@ int tap_ctl_info(pid_t pid, unsigned long long *sectors,
*sectors = message.u.image.sectors;
*sector_size = message.u.image.sector_size;
*info = message.u.image.info;
*discard = message.u.image.discard;
return 0;
} else if (TAPDISK_MESSAGE_ERROR == message.type) {
return -message.u.response.error;
Expand Down

0 comments on commit 89283c1

Please sign in to comment.