Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2012 22:19:51 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238217 - head/sys/cam/scsi
Message-ID:  <201207072219.q67MJpvW093571@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sat Jul  7 22:19:51 2012
New Revision: 238217
URL: http://svn.freebsd.org/changeset/base/238217

Log:
  Make the da(4) driver notify GEOM about LUN size change.
  
  Reviewed by:	mav
  Sponsored by:	FreeBSD Foundation

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Sat Jul  7 21:28:31 2012	(r238216)
+++ head/sys/cam/scsi/scsi_da.c	Sat Jul  7 22:19:51 2012	(r238217)
@@ -2644,6 +2644,8 @@ dasetgeom(struct cam_periph *periph, uin
 		softc->disk->d_flags |= DISKFLAG_CANDELETE;
 	else
 		softc->disk->d_flags &= ~DISKFLAG_CANDELETE;
+
+	disk_resize(softc->disk);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207072219.q67MJpvW093571>