diff options
author | Karel Zak | 2012-10-23 10:57:59 +0200 |
---|---|---|
committer | Karel Zak | 2012-10-23 12:15:58 +0200 |
commit | d0f7e5b4a0a1b83e515c9fd894d74ed36d7da5c1 (patch) | |
tree | 2d79269c4ab7dd7369e7615e3a28ec73f756a375 /include/sysfs.h | |
parent | lib/tt: don't ignore "extreme" columns if an free space is available (diff) | |
download | kernel-qcow2-util-linux-d0f7e5b4a0a1b83e515c9fd894d74ed36d7da5c1.tar.gz kernel-qcow2-util-linux-d0f7e5b4a0a1b83e515c9fd894d74ed36d7da5c1.tar.xz kernel-qcow2-util-linux-d0f7e5b4a0a1b83e515c9fd894d74ed36d7da5c1.zip |
include/sysfs: add SCSI host:channel:target:lun support
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r-- | include/sysfs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h index 9e47a5571..10875d421 100644 --- a/include/sysfs.h +++ b/include/sysfs.h @@ -21,6 +21,13 @@ struct sysfs_cxt { int dir_fd; /* /sys/block/<name> */ char *dir_path; struct sysfs_cxt *parent; + + unsigned int scsi_host, + scsi_channel, + scsi_target, + scsi_lun; + + unsigned int has_hctl : 1; }; #define UL_SYSFSCXT_EMPTY { 0, -1, NULL, NULL } @@ -65,4 +72,8 @@ extern int sysfs_is_partition_dirent(DIR *dir, struct dirent *d, extern int sysfs_devno_to_wholedisk(dev_t dev, char *diskname, size_t len, dev_t *diskdevno); + +extern int sysfs_scsi_get_hctl(struct sysfs_cxt *cxt, int *h, + int *c, int *t, int *l); + #endif /* UTIL_LINUX_SYSFS_H */ |