aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2012-03-06 13:43:57 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2012-03-06 13:43:57 +0000
commit811772950f6233aa95be544ad5e7cb7002488d68 (patch)
tree21a7004b7ca48373596470e3a58af3c4b396cd5a /sys/cam/ctl/ctl_backend.h
parent7dfd88318b2c2e2e105fa66fba408ea5c034aa05 (diff)
downloadsrc-811772950f6233aa95be544ad5e7cb7002488d68.tar.gz
src-811772950f6233aa95be544ad5e7cb7002488d68.zip
Add LUN resizing to CTL. Also make it possible to explicitly set
size when creating file-backed or device-backed LUN. Reviewed by: ken (earlier version) Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=232604
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index e33b42b8cb56..c3798e423f4e 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -280,6 +280,11 @@ int ctl_lun_power_lock(struct ctl_be_lun *be_lun, struct ctl_nexus *nexus,
int ctl_lun_offline(struct ctl_be_lun *be_lun);
int ctl_lun_online(struct ctl_be_lun *be_lun);
+/*
+ * Let the backend notify the initiator about changed capacity.
+ */
+void ctl_lun_capacity_changed(struct ctl_be_lun *be_lun);
+
#endif /* _KERNEL */
#endif /* _CTL_BACKEND_H_ */