diff options
author | trasz <trasz@FreeBSD.org> | 2012-07-07 22:19:51 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2012-07-07 22:19:51 +0000 |
commit | 770bbae61e56e038c7a6ec60dfecfef0b944b547 (patch) | |
tree | 6454efb30cec5cf98ba12713120f9ae5c6b131e8 /sys/cam/scsi | |
parent | 19d6a6d81b226004fae39fbf39d425e91376e206 (diff) | |
download | FreeBSD-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.c | 2 |
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 |