summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt.c
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2016-07-06 17:42:09 +0000
committertruckman <truckman@FreeBSD.org>2016-07-06 17:42:09 +0000
commit15fb55aa670314e87deb319e02abdf4bcbac078b (patch)
treee5a053590127ee21f62d5aa6351638cd94471089 /sys/cam/cam_xpt.c
parent3f7fb5e22f97fffdae5ca551fbca392a7e6eccf7 (diff)
downloadFreeBSD-src-15fb55aa670314e87deb319e02abdf4bcbac078b.zip
FreeBSD-src-15fb55aa670314e87deb319e02abdf4bcbac078b.tar.gz
MFC r299371 (by trasz)
Add "camcontrol reprobe" subcommand, and implement it for da(4). This makes it possible to manually force updating capacity data after the disk got resized. Without it it might be neccessary to reboot before FreeBSD notices updated disk size under eg VMWare. Differential Revision: https://reviews.freebsd.org/D6108
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r--sys/cam/cam_xpt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 39ff577..f174671 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -2991,6 +2991,11 @@ call_sim:
xpt_freeze_devq(path, 1);
start_ccb->ccb_h.status = CAM_REQ_CMP;
break;
+ case XPT_REPROBE_LUN:
+ xpt_async(AC_INQ_CHANGED, path, NULL);
+ start_ccb->ccb_h.status = CAM_REQ_CMP;
+ xpt_done(start_ccb);
+ break;
default:
case XPT_SDEV_TYPE:
case XPT_TERM_IO:
OpenPOWER on IntegriCloud