[Etherboot-developers] HTTPDisk SAN Protocol
Brought to you by:
marty_connor,
stefanhajnoczi
From: Miller, S. <Sha...@yr...> - 2009-06-19 08:27:51
|
Good day to All, For your pleasure, attached here are patches for an HTTPDisk SAN protocol in gPXE. The patches' comments are given below the following commit-diff "convenience" links for quick reading. httpdisk branch: http://git.etherboot.org/?p=people/andytim/gpxe.git;a=shortlog;h=refs/he ads/httpdisk "[sanboot] Move keep-san setting out of iSCSI": http://git.etherboot.org/?p=people/andytim/gpxe.git;a=commitdiff;h=ae0b6 96fe20c659cfee5ca440ef1895c26c94126 "[http] Add optional additional headers and other changes": http://git.etherboot.org/?p=people/andytim/gpxe.git;a=commitdiff;h=ae0b6 96fe20c659cfee5ca440ef1895c26c94126 "[httpdisk] HTTPDisk SAN protocol": http://git.etherboot.org/?p=people/andytim/gpxe.git;a=commitdiff;h=dbdb4 b7b772676e3d9ac7a2a0f2e51e9b8f5c7bc "[build] Include HTTPDisk SAN protocol in build targets": http://git.etherboot.org/?p=people/andytim/gpxe.git;a=commitdiff;h=cccf5 26c655189002af019c03af83f283d4376d0 --- --- --- Patch comments: >From ae0b696fe20c659cfee5ca440ef1895c26c94126 Mon Sep 17 00:00:00 2001 From: Shao Miller <sha...@yr...> Date: Fri, 19 Jun 2009 03:04:34 -0400 Subject: [PATCH] [sanboot] Move keep-san setting out of iSCSI The keep-san setting has been moved into a new sanboot.c file so that SAN protocols other than iSCSI can access it. --- src/arch/i386/interface/pcbios/iscsiboot.c | 7 ------- src/arch/i386/interface/pcbios/sanboot.c | 11 +++++++++++ src/include/gpxe/sanboot.h | 2 ++ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 src/arch/i386/interface/pcbios/sanboot.c >From bbf5151ea2ef9a366d46d3c0091ff108fb754bff Mon Sep 17 00:00:00 2001 From: Shao Miller <sha...@yr...> Date: Fri, 19 Jun 2009 03:25:56 -0400 Subject: [PATCH] [http] Add optional additional headers and other changes Support for optionally injecting additional headers into the HTTP request, which are passed by a caller of http_open_filter(). This can be useful for requesting byte ranges, for example. Support for parsing Content-Range headers in responses. If a caller to http_open_filter() passes us a pointer to a resource length field, we will fill this field in on their behalf during processing. Such a caller can then know the total length of a resource, even if they only requested a byte range. --- src/include/gpxe/http.h | 1 + src/net/tcp/http.c | 69 ++++++++++++++++++++++++++++++++++++++++++++-- src/net/tcp/https.c | 2 +- 3 files changed, 68 insertions(+), 4 deletions(-) >From dbdb4b7b772676e3d9ac7a2a0f2e51e9b8f5c7bc Mon Sep 17 00:00:00 2001 From: Shao Miller <sha...@yr...> Date: Fri, 19 Jun 2009 03:56:58 -0400 Subject: [PATCH] [httpdisk] HTTPDisk SAN protocol A new, read-only SAN protocol. If enabled for inclusion in the gPXE build, you can do something like: sanboot http://shaomiller.com/test.hdd in order to SAN-boot to an HDD image served from that web-site. 'keep-san' should also preserve the SAN connection if the SAN's MBR code returns control to gPXE. This is handy for those who do not have AoE nor iSCSI services, but who do have a web service. --- contrib/scripts/httpdisk.gpxe | 4 + src/arch/i386/interface/pcbios/httpdiskboot.c | 120 ++++++++++ src/config/defaults/pcbios.h | 1 + src/config/general.h | 1 + src/core/config.c | 3 + src/include/gpxe/errfile.h | 2 + src/include/gpxe/features.h | 1 + src/include/gpxe/httpdisk.h | 75 ++++++ src/net/tcp/httpdisk.c | 309 +++++++++++++++++++++++++ 9 files changed, 516 insertions(+), 0 deletions(-) create mode 100644 contrib/scripts/httpdisk.gpxe create mode 100644 src/arch/i386/interface/pcbios/httpdiskboot.c create mode 100644 src/include/gpxe/httpdisk.h create mode 100644 src/net/tcp/httpdisk.c >From cccf526c655189002af019c03af83f283d4376d0 Mon Sep 17 00:00:00 2001 From: Shao Miller <sha...@yr...> Date: Fri, 19 Jun 2009 04:06:26 -0400 Subject: [PATCH] [build] Include HTTPDisk SAN protocol in build targets Enable the HTTPDisk SAN protocol in gPXE builds. --- src/config/general.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- --- --- Enjoy! - Shao Miller |