diff options
author | mav <mav@FreeBSD.org> | 2014-11-11 17:14:35 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-11-11 17:14:35 +0000 |
commit | 2a51a4259abd828f1e0ec83ce85c9fe61ece9f1f (patch) | |
tree | d17c7314efce44b62337454f97d1ef91a9db7eee /sys/cam/ctl | |
parent | e4a81f9ddf59ce28d3a6ff490d99f10f7abbd816 (diff) | |
download | FreeBSD-src-2a51a4259abd828f1e0ec83ce85c9fe61ece9f1f.zip FreeBSD-src-2a51a4259abd828f1e0ec83ce85c9fe61ece9f1f.tar.gz |
MFC r274253: Fix LUN resize broken by r272911 commit.
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r-- | sys/cam/ctl/ctl_backend_block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c index e6122a3..dc725a3 100644 --- a/sys/cam/ctl/ctl_backend_block.c +++ b/sys/cam/ctl/ctl_backend_block.c @@ -2369,7 +2369,7 @@ ctl_be_block_modify(struct ctl_be_block_softc *softc, struct ctl_lun_req *req) be_lun->params.lun_size_bytes = params->lun_size_bytes; - oldsize = be_lun->size_blocks; + oldsize = be_lun->size_bytes; if (be_lun->vn == NULL) error = ctl_be_block_open(softc, be_lun, req); else if (be_lun->vn->v_type == VREG) @@ -2377,7 +2377,7 @@ ctl_be_block_modify(struct ctl_be_block_softc *softc, struct ctl_lun_req *req) else error = ctl_be_block_modify_dev(be_lun, req); - if (error == 0 && be_lun->size_blocks != oldsize) { + if (error == 0 && be_lun->size_bytes != oldsize) { be_lun->size_blocks = be_lun->size_bytes >> be_lun->blocksize_shift; |