svn commit: r274387 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Tue Nov 11 17:14:36 UTC 2014


Author: mav
Date: Tue Nov 11 17:14:35 2014
New Revision: 274387
URL: https://svnweb.freebsd.org/changeset/base/274387

Log:
  MFC r274253: Fix LUN resize broken by r272911 commit.

Modified:
  stable/10/sys/cam/ctl/ctl_backend_block.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl_backend_block.c	Tue Nov 11 17:14:11 2014	(r274386)
+++ stable/10/sys/cam/ctl/ctl_backend_block.c	Tue Nov 11 17:14:35 2014	(r274387)
@@ -2369,7 +2369,7 @@ ctl_be_block_modify(struct ctl_be_block_
 
 	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_
 	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;
 


More information about the svn-src-stable-10 mailing list