summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2012-07-07 22:19:51 +0000
committertrasz <trasz@FreeBSD.org>2012-07-07 22:19:51 +0000
commit770bbae61e56e038c7a6ec60dfecfef0b944b547 (patch)
tree6454efb30cec5cf98ba12713120f9ae5c6b131e8 /sys/cam/scsi
parent19d6a6d81b226004fae39fbf39d425e91376e206 (diff)
downloadFreeBSD-src-770bbae61e56e038c7a6ec60dfecfef0b944b547.zip
FreeBSD-src-770bbae61e56e038c7a6ec60dfecfef0b944b547.tar.gz
Make the da(4) driver notify GEOM about LUN size change.
Reviewed by: mav Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_da.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 89115ed..e842af6 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
OpenPOWER on IntegriCloud