From 770bbae61e56e038c7a6ec60dfecfef0b944b547 Mon Sep 17 00:00:00 2001 From: trasz Date: Sat, 7 Jul 2012 22:19:51 +0000 Subject: [PATCH] Make the da(4) driver notify GEOM about LUN size change. Reviewed by: mav Sponsored by: FreeBSD Foundation --- sys/cam/scsi/scsi_da.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 89115ed80153..e842af648335 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -2644,6 +2644,8 @@ dasetgeom(struct cam_periph *periph, uint32_t block_len, uint64_t maxsector, softc->disk->d_flags |= DISKFLAG_CANDELETE; else softc->disk->d_flags &= ~DISKFLAG_CANDELETE; + + disk_resize(softc->disk); } static void