summaryrefslogtreecommitdiffstats
path: root/sys/cam/ctl/ctl.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-12-24 13:49:40 +0000
committermav <mav@FreeBSD.org>2014-12-24 13:49:40 +0000
commit5d78bffe2b06e0aa6f7cd8c4dcd19ec5fcea8606 (patch)
treec19ffe3093bffd0602db95985d1f571e2edeb506 /sys/cam/ctl/ctl.h
parent7a82e24551b11b26164c99f1cf257be33793fdb0 (diff)
downloadFreeBSD-src-5d78bffe2b06e0aa6f7cd8c4dcd19ec5fcea8606.zip
FreeBSD-src-5d78bffe2b06e0aa6f7cd8c4dcd19ec5fcea8606.tar.gz
MFC r275865:
Add configuration options to override physical and UNMAP blocks geometry. While in most cases CTL should correctly fetch those values from backing storages, there are some initiators (like MS SQL), that may not like large physical block sizes, even if they are true. For such cases allow override fetched values with supported ones (like 4K).
Diffstat (limited to 'sys/cam/ctl/ctl.h')
-rw-r--r--sys/cam/ctl/ctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.h b/sys/cam/ctl/ctl.h
index 1ec0586..ae6c583 100644
--- a/sys/cam/ctl/ctl.h
+++ b/sys/cam/ctl/ctl.h
@@ -206,6 +206,7 @@ struct ctl_be_arg;
void ctl_init_opts(ctl_options_t *opts, int num_args, struct ctl_be_arg *args);
void ctl_free_opts(ctl_options_t *opts);
char * ctl_get_opt(ctl_options_t *opts, const char *name);
+int ctl_expand_number(const char *buf, uint64_t *num);
#endif /* _KERNEL */
OpenPOWER on IntegriCloud