ibft: separate ibft parsing from sysfs interface
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 12 Apr 2010 18:06:17 +0000 (18:06 +0000)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Tue, 11 May 2010 17:02:38 +0000 (13:02 -0400)
commitba4ee30c6c797de148dcc7254cf6d531aba71d9b
tree8d482a3a1a819a6e36afcbf1fe964c70d6e95341
parent1303a35bfe153370cddb1b6e58e2287469e35f34
ibft: separate ibft parsing from sysfs interface

Not all iscsi drivers support ibft. For drivers like be2iscsi
that do not but are bootable through a vendor firmware specific
format/process this patch moves the sysfs interface from the ibft code
to a lib module. This then allows userspace tools to search for iscsi boot
info in a common place and in a common format.

ibft iscsi boot info is exported in the same place as it was
before: /sys/firmware/ibft.

vendor/fw boot info gets export in /sys/firmware/iscsi_bootX, where X is the
scsi host number of the HBA. Underneath these parent dirs, the
target, ethernet, and initiator dirs are the same as they were before.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: Peter Jones <pjones@redhat.com>
drivers/firmware/Kconfig
drivers/firmware/Makefile
drivers/firmware/iscsi_boot_sysfs.c [new file with mode: 0644]
include/linux/iscsi_boot_sysfs.h [new file with mode: 0644]