diff options
author | trasz <trasz@FreeBSD.org> | 2012-03-06 13:43:57 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2012-03-06 13:43:57 +0000 |
commit | 1d720144fdb563ad9f7045262dffe76fda283e23 (patch) | |
tree | 21a7004b7ca48373596470e3a58af3c4b396cd5a /sys/cam/ctl/ctl_backend.h | |
parent | 1c33114ffdd61c716e728a416a6e816ebcb7f135 (diff) | |
download | FreeBSD-src-1d720144fdb563ad9f7045262dffe76fda283e23.zip FreeBSD-src-1d720144fdb563ad9f7045262dffe76fda283e23.tar.gz |
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
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r-- | sys/cam/ctl/ctl_backend.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h index e33b42b..c3798e4 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_ */ |