ctld.h (287757) | ctld.h (288310) |
---|---|
1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/usr.sbin/ctld/ctld.h 287757 2015-09-13 15:08:06Z mav $ | 29 * $FreeBSD: head/usr.sbin/ctld/ctld.h 288310 2015-09-27 13:47:28Z mav $ |
30 */ 31 32#ifndef CTLD_H 33#define CTLD_H 34 35#include <sys/queue.h> 36#ifdef ICL_KERNEL_PROXY 37#include <sys/types.h> --- 121 unchanged lines hidden (view full) --- 159}; 160 161struct lun { 162 TAILQ_ENTRY(lun) l_next; 163 struct conf *l_conf; 164 TAILQ_HEAD(, lun_option) l_options; 165 char *l_name; 166 char *l_backend; | 30 */ 31 32#ifndef CTLD_H 33#define CTLD_H 34 35#include <sys/queue.h> 36#ifdef ICL_KERNEL_PROXY 37#include <sys/types.h> --- 121 unchanged lines hidden (view full) --- 159}; 160 161struct lun { 162 TAILQ_ENTRY(lun) l_next; 163 struct conf *l_conf; 164 TAILQ_HEAD(, lun_option) l_options; 165 char *l_name; 166 char *l_backend; |
167 uint8_t l_device_type; |
|
167 int l_blocksize; 168 char *l_device_id; 169 char *l_path; 170 char *l_scsiname; 171 char *l_serial; 172 int64_t l_size; 173 174 int l_ctl_lun; --- 195 unchanged lines hidden (view full) --- 370 const char *name); 371int target_set_redirection(struct target *target, 372 const char *addr); 373 374struct lun *lun_new(struct conf *conf, const char *name); 375void lun_delete(struct lun *lun); 376struct lun *lun_find(const struct conf *conf, const char *name); 377void lun_set_backend(struct lun *lun, const char *value); | 168 int l_blocksize; 169 char *l_device_id; 170 char *l_path; 171 char *l_scsiname; 172 char *l_serial; 173 int64_t l_size; 174 175 int l_ctl_lun; --- 195 unchanged lines hidden (view full) --- 371 const char *name); 372int target_set_redirection(struct target *target, 373 const char *addr); 374 375struct lun *lun_new(struct conf *conf, const char *name); 376void lun_delete(struct lun *lun); 377struct lun *lun_find(const struct conf *conf, const char *name); 378void lun_set_backend(struct lun *lun, const char *value); |
379void lun_set_device_type(struct lun *lun, uint8_t value); |
|
378void lun_set_blocksize(struct lun *lun, size_t value); 379void lun_set_device_id(struct lun *lun, const char *value); 380void lun_set_path(struct lun *lun, const char *value); 381void lun_set_scsiname(struct lun *lun, const char *value); 382void lun_set_serial(struct lun *lun, const char *value); 383void lun_set_size(struct lun *lun, size_t value); 384void lun_set_ctl_lun(struct lun *lun, uint32_t value); 385 --- 67 unchanged lines hidden --- | 380void lun_set_blocksize(struct lun *lun, size_t value); 381void lun_set_device_id(struct lun *lun, const char *value); 382void lun_set_path(struct lun *lun, const char *value); 383void lun_set_scsiname(struct lun *lun, const char *value); 384void lun_set_serial(struct lun *lun, const char *value); 385void lun_set_size(struct lun *lun, size_t value); 386void lun_set_ctl_lun(struct lun *lun, uint32_t value); 387 --- 67 unchanged lines hidden --- |