diff options
author | Jason King <jasonbking@users.noreply.github.com> | 2020-03-24 13:29:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 13:29:18 -0500 |
commit | 8ea6e1e2b330e5f0cb4b3bc3f0ed46a6a385d79a (patch) | |
tree | 36b4246514758c36784e87f46b5273f3aac35106 /usr/src | |
parent | 83d6c1c819dce16c1f12a8ae9f0d8319900f4695 (diff) | |
download | illumos-joyent-8ea6e1e2b330e5f0cb4b3bc3f0ed46a6a385d79a.tar.gz |
OS-8136 Add DISCARD/TRIM support to bhyve (fix compiler warning) (#274)
Reviewed by: Mike Gerdts <mike.gerdts@joyent.com>
Approved by: Mike Gerdts <mike.gerdts@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/bhyve/block_if.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/cmd/bhyve/block_if.c b/usr/src/cmd/bhyve/block_if.c index 85ad55b05a..8278bf3f92 100644 --- a/usr/src/cmd/bhyve/block_if.c +++ b/usr/src/cmd/bhyve/block_if.c @@ -372,8 +372,12 @@ blockif_proc(struct blockif_ctxt *bc, struct blockif_elem *be, uint8_t *buf) .dfl_num_exts = 1, .dfl_offset = 0, .dfl_flags = 0, - .dfl_exts[0].dfle_start = br->br_offset, - .dfl_exts[0].dfle_length = br->br_resid + .dfl_exts = { + { + .dfle_start = br->br_offset, + .dfle_length = br->br_resid + } + } }; if (ioctl(bc->bc_fd, DKIOCFREE, &dfl)) |