SOURCES: scsiinfo-llh.patch (NEW) - <linux/genhd.h> is a private header now

qboosh qboosh at pld-linux.org
Thu Jul 10 20:29:13 CEST 2008


Author: qboosh                       Date: Thu Jul 10 18:29:13 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- <linux/genhd.h> is a private header now

---- Files affected:
SOURCES:
   scsiinfo-llh.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/scsiinfo-llh.patch
diff -u /dev/null SOURCES/scsiinfo-llh.patch:1.1
--- /dev/null	Thu Jul 10 20:29:13 2008
+++ SOURCES/scsiinfo-llh.patch	Thu Jul 10 20:29:07 2008
@@ -0,0 +1,24 @@
+--- scsiinfo-1.7/scsiformat.c.orig	2008-07-10 20:08:49.643026000 +0200
++++ scsiinfo-1.7/scsiformat.c	2008-07-10 20:12:35.575026252 +0200
+@@ -54,7 +54,20 @@
+ #include <linux/fs.h>
+ #endif
+ #include <linux/hdreg.h>
+-#include <linux/genhd.h>
++
++/* from <linux/genhd.h> */
++struct partition {
++	unsigned char boot_ind;		/* 0x80 - active */
++	unsigned char head;		/* starting head */
++	unsigned char sector;		/* starting sector */
++	unsigned char cyl;		/* starting cylinder */
++	unsigned char sys_ind;		/* What partition type */
++	unsigned char end_head;		/* end head */
++	unsigned char end_sector;	/* end sector */
++	unsigned char end_cyl;		/* end cylinder */
++	__le32 start_sect;		/* starting sector counting from 0 */
++	__le32 nr_sects;		/* nr of sectors in partition */
++} __attribute__((packed));
+ 
+ #define TEST_UNIT_READY	(0x00)
+ #define FORMAT_UNIT	(0x04)
================================================================


More information about the pld-cvs-commit mailing list