Skip to contentSkip to conversation

Problem at compiling kernel 2.4.18 with lvm 1.0.7

linux-lvm Krisztian Gyoerffy 2 participants 6 messages Oct 29, 2003 – Oct 31, 2003

lore
Share & tools
lore
#0 lore raw

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I follow the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like to keep my OS up to date I installed the 2.4.18 kernel source from SuSE on my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed exactly the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped compiling with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=lvm -c -o lvm.o lvm.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=lvm_snap -c -o lvm-snap.o lvm-snap.c lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md'
make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Afterwards I looked into the patch file, and into the lvm-snap.c at the given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in the /usr/src/linux/include/linux/iobuf.h header file. But this header file is completly different in the source of the 2.4.18 kernel than in the source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

I attach the lvm patch file generated by make and the iobuf.h file for both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

include/linux/lvm.h renamed from include/linux/lvm.h.orig +65 -66
@@ -3,13 +3,14 @@
  * kernel/lvm.h
  * tools/lib/lvm.h
  *
- * Copyright (C) 1997 - 2001  Heinz Mauelshagen, Sistina Software
+ * Copyright (C) 1997 - 2002  Heinz Mauelshagen, Sistina Software
  *
  * February-November 1997
  * May-July 1998
  * January-March,July,September,October,Dezember 1999
  * January,February,July,November 2000
  * January-March,June,July 2001
+ * May 2002
  *
  * lvm is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -79,8 +80,8 @@
 #ifndef _LVM_H_INCLUDE
 #define _LVM_H_INCLUDE
 
-#define LVM_RELEASE_NAME "1.0.3"
-#define LVM_RELEASE_DATE "19/02/2002"
+#define LVM_RELEASE_NAME "1.0.7"
+#define LVM_RELEASE_DATE "28/03/2003"
 
 #define	_LVM_KERNEL_H_VERSION	"LVM "LVM_RELEASE_NAME" ("LVM_RELEASE_DATE")"
 
@@ -93,7 +94,7 @@
 #define	LVM_TOTAL_RESET
 
 #ifdef __KERNEL__
-#undef LVM_HD_NAME /* display nice names in /proc/partitions */
+#undef LVM_HD_NAME		/* display nice names in /proc/partitions */
 
 /* lots of debugging output (see driver source)
    #define DEBUG_LVM_GET_INFO
@@ -117,7 +118,7 @@
    causes problems on some platforms. It's not nice but then
    neither is the alternative. */
 struct list_head {
-        struct list_head *next, *prev;
+	struct list_head *next, *prev;
 };
 #define __KERNEL__
 #include <linux/kdev_t.h>
@@ -208,40 +209,35 @@
 /*
  * VGDA: default disk spaces and offsets
  *
- *   There's space after the structures for later extensions.
- *   The physical volume structure holds offset and size definitions
- *   for itself (well, kind of redundant ;-) and all other structure{s| arrays};
- *
- *   In recent versions since LVM 0.9.1 we align to 4k offsets in order to ease
- *   future kernel reads of the metadata.
- *
- *   offset               what                               size
- *   ---------------      --------------------------------   ------------
- *   0                    physical volume structure          pv->pv_on_disk.size
- *                                                           (~500 byte)
- *   pv->vg_on_disk.base  volume group structure             pv->vg_on_disk.size
- *
- *   pv->uuidlist_on_disk.base                               128 byte each
- *                        uuidlist of physical volumes
- *                        holding one uuid per physical volume
+ *   there's space after the structures for later extensions.
  *
- *   pv->lv_on_disk.base  logical volume structures;         pv->lv_on_disk.size
- *                        one structure per logical volume   (~300 byte each)
+ *   offset            what                                size
+ *   ---------------   ----------------------------------  ------------
+ *   0                 physical volume structure           ~500 byte
  *
- *   pv->pe_on_disk.base  physical extent alloc. structs     pv->pe_on_disk.size
- *                        one strcuture per physical extent  (4 byte each)
+ *   1K                volume group structure              ~200 byte
  *
- *   End of disk -        first physical extent              default 4 megabyte
+ *   6K                namelist of physical volumes        128 byte each
+ *
+ *   6k + n * ~300byte n logical volume structures         ~300 byte each
+ *
+ *   + m * 4byte       m physical extent alloc. structs    4 byte each
+ *
+ *   End of disk -     first physical extent               typically 4 megabyte
  *   PE total *
  *   PE size
- *   (rounded to 64k offset today)
  *
- *   pv->pe_on_disk.base + pv->pe_on_disk.size == start of first physical extent
  *
  */
 
 /* DONT TOUCH THESE !!! */
 
+
+
+
+
+
+
 /*
  * LVM_PE_T_MAX corresponds to:
  *
@@ -253,7 +249,7 @@
  *
  * Maximum PE size of 16GB gives a maximum logical volume size of 1024 TB.
  *
- * AFAIK, the actual kernels limit this to 2 TB.
+ * AFAIK, the actual kernels limit this to 1 TB.
  *
  * Should be a sufficient spectrum ;*)
  */
@@ -262,9 +258,9 @@
 #define	LVM_PE_T_MAX		( ( 1 << ( sizeof ( uint16_t) * 8)) - 2)
 
 #define	LVM_LV_SIZE_MAX(a)	( ( long long) LVM_PE_T_MAX * (a)->pe_size > ( long long) 1024*1024/SECTOR_SIZE*1024*1024 ? ( long long) 1024*1024/SECTOR_SIZE*1024*1024 : ( long long) LVM_PE_T_MAX * (a)->pe_size)
-#define	LVM_MIN_PE_SIZE		( 8192L / SECTOR_SIZE) /* 8 KB in sectors */
+#define	LVM_MIN_PE_SIZE		( 8192L / SECTOR_SIZE)	/* 8 KB in sectors */
 #define	LVM_MAX_PE_SIZE		( 16L * 1024L * 1024L / SECTOR_SIZE * 1024)	/* 16GB in sectors */
-#define	LVM_DEFAULT_PE_SIZE	( 4096L * 1024 / SECTOR_SIZE)	/* 4 MB in sectors */
+#define	LVM_DEFAULT_PE_SIZE	( 32768L * 1024 / SECTOR_SIZE)	/* 32 MB in sectors */
 #define	LVM_DEFAULT_STRIPE_SIZE	16L	/* 16 KB  */
 #define	LVM_MIN_STRIPE_SIZE	( PAGE_SIZE/SECTOR_SIZE)	/* PAGESIZE in sectors */
 #define	LVM_MAX_STRIPE_SIZE	( 512L * 1024 / SECTOR_SIZE)	/* 512 KB in sectors */
@@ -273,7 +269,7 @@
 #define	LVM_MAX_MIRRORS    	2	/* future use */
 #define	LVM_MIN_READ_AHEAD	0	/* minimum read ahead sectors */
 #define	LVM_DEFAULT_READ_AHEAD	1024	/* sectors for 512k scsi segments */
-#define	LVM_MAX_READ_AHEAD	10000	/* maximum read ahead sectors */
+#define	LVM_MAX_READ_AHEAD	1024	/* maximum read ahead sectors */
 #define	LVM_MAX_LV_IO_TIMEOUT	60	/* seconds I/O timeout (future use) */
 #define	LVM_PARTITION           0xfe	/* LVM partition id */
 #define	LVM_NEW_PARTITION       0x8e	/* new LVM partition id (10/09/1999) */
@@ -420,9 +416,9 @@
 typedef struct lv_block_exception_v1 {
 	struct list_head hash;
 	uint32_t rsector_org;
-	kdev_t   rdev_org;
+	kdev_t rdev_org;
 	uint32_t rsector_new;
-	kdev_t   rdev_new;
+	kdev_t rdev_new;
 } lv_block_exception_t;
 
 /* disk stored pe information */
@@ -466,7 +462,7 @@
 	uint pe_stale;		/* for future use */
 	pe_disk_t *pe;		/* HM */
 	struct block_device *bd;
-	char pv_uuid[UUID_LEN+1];
+	char pv_uuid[UUID_LEN + 1];
 
 #ifndef __KERNEL__
 	uint32_t pe_start;	/* in sectors */
@@ -477,7 +473,7 @@
 /* disk */
 typedef struct pv_disk_v2 {
 	uint8_t id[2];		/* Identifier */
-	uint16_t version;		/* HM lvm version */
+	uint16_t version;	/* HM lvm version */
 	lvm_disk_data_t pv_on_disk;
 	lvm_disk_data_t vg_on_disk;
 	lvm_disk_data_t pv_uuidlist_on_disk;
@@ -490,14 +486,14 @@
 	uint32_t pv_number;
 	uint32_t pv_status;
 	uint32_t pv_allocatable;
-	uint32_t pv_size;		/* HM */
+	uint32_t pv_size;	/* HM */
 	uint32_t lv_cur;
 	uint32_t pe_size;
 	uint32_t pe_total;
 	uint32_t pe_allocated;
-	
+
 	/* new in struct version 2 */
-	uint32_t pe_start;	        /* in sectors */
+	uint32_t pe_start;	/* in sectors */
 
 } pv_disk_t;
 
@@ -571,8 +567,8 @@
 	uint32_t lv_snapshot_hash_table_size;
 	uint32_t lv_snapshot_hash_mask;
 	wait_queue_head_t lv_snapshot_wait;
-	int	lv_snapshot_use_rate;
-	struct vg_v3	*vg;
+	int lv_snapshot_use_rate;
+	struct vg_v3 *vg;
 
 	uint lv_allocated_snapshot_le;
 #else
@@ -586,14 +582,14 @@
 	uint8_t vg_name[NAME_LEN];
 	uint32_t lv_access;
 	uint32_t lv_status;
-	uint32_t lv_open;		/* HM */
-	uint32_t lv_dev;		/* HM */
+	uint32_t lv_open;	/* HM */
+	uint32_t lv_dev;	/* HM */
 	uint32_t lv_number;	/* HM */
 	uint32_t lv_mirror_copies;	/* for future use */
 	uint32_t lv_recovery;	/*       "        */
 	uint32_t lv_schedule;	/*       "        */
 	uint32_t lv_size;
-	uint32_t lv_snapshot_minor;/* minor number of original */
+	uint32_t lv_snapshot_minor;	/* minor number of original */
 	uint16_t lv_chunk_size;	/* chunk size of snapshot */
 	uint16_t dummy;
 	uint32_t lv_allocated_le;
@@ -630,7 +626,7 @@
 	struct proc_dir_entry *proc;
 	pv_t *pv[ABS_MAX_PV + 1];	/* physical volume struct pointers */
 	lv_t *lv[ABS_MAX_LV + 1];	/* logical  volume struct pointers */
-	char vg_uuid[UUID_LEN+1];	/* volume group UUID */
+	char vg_uuid[UUID_LEN + 1];	/* volume group UUID */
 #ifdef __KERNEL__
 	struct proc_dir_entry *vg_dir_pde;
 	struct proc_dir_entry *lv_subdir_pde;
@@ -644,20 +640,20 @@
 /* disk */
 typedef struct vg_disk_v2 {
 	uint8_t vg_uuid[UUID_LEN];	/* volume group UUID */
-	uint8_t vg_name_dummy[NAME_LEN-UUID_LEN];	/* rest of v1 VG name */
+	uint8_t vg_name_dummy[NAME_LEN - UUID_LEN];	/* rest of v1 VG name */
 	uint32_t vg_number;	/* volume group number */
 	uint32_t vg_access;	/* read/write */
 	uint32_t vg_status;	/* active or not */
-	uint32_t lv_max;		/* maximum logical volumes */
-	uint32_t lv_cur;		/* current logical volumes */
-	uint32_t lv_open;		/* open    logical volumes */
-	uint32_t pv_max;		/* maximum physical volumes */
-	uint32_t pv_cur;		/* current physical volumes FU */
-	uint32_t pv_act;		/* active physical volumes */
+	uint32_t lv_max;	/* maximum logical volumes */
+	uint32_t lv_cur;	/* current logical volumes */
+	uint32_t lv_open;	/* open    logical volumes */
+	uint32_t pv_max;	/* maximum physical volumes */
+	uint32_t pv_cur;	/* current physical volumes FU */
+	uint32_t pv_act;	/* active physical volumes */
 	uint32_t dummy;
 	uint32_t vgda;		/* volume group descriptor arrays FU */
-	uint32_t pe_size;		/* physical extent size in sectors */
-	uint32_t pe_total;		/* total of physical extents */
+	uint32_t pe_size;	/* physical extent size in sectors */
+	uint32_t pe_total;	/* total of physical extents */
 	uint32_t pe_allocated;	/* allocated physical extents */
 	uint32_t pvg_total;	/* physical volume groups FU */
 } vg_disk_t;
@@ -716,40 +712,44 @@
 
 /* Request structure LV_SNAPSHOT_USE_RATE */
 typedef struct {
-	int	block;
-	int	rate;
+	int block;
+	int rate;
 } lv_snapshot_use_rate_req_t;
 
 
 
 /* useful inlines */
-static inline ulong round_up(ulong n, ulong size) {
+static inline ulong round_up(ulong n, ulong size)
+{
 	size--;
 	return (n + size) & ~size;
 }
 
-static inline ulong div_up(ulong n, ulong size) {
+static inline ulong div_up(ulong n, ulong size)
+{
 	return round_up(n, size) / size;
 }
 
 /* FIXME: nasty capital letters */
-static int inline LVM_GET_COW_TABLE_CHUNKS_PER_PE(vg_t *vg, lv_t *lv) {
+static int inline LVM_GET_COW_TABLE_CHUNKS_PER_PE(vg_t * vg, lv_t * lv)
+{
 	return vg->pe_size / lv->lv_chunk_size;
 }
 
-static int inline LVM_GET_COW_TABLE_ENTRIES_PER_PE(vg_t *vg, lv_t *lv) {
+static int inline LVM_GET_COW_TABLE_ENTRIES_PER_PE(vg_t * vg, lv_t * lv)
+{
 	ulong chunks = vg->pe_size / lv->lv_chunk_size;
 	ulong entry_size = sizeof(lv_COW_table_disk_t);
 	ulong chunk_size = lv->lv_chunk_size * SECTOR_SIZE;
 	ulong entries = (vg->pe_size * SECTOR_SIZE) /
-		(entry_size + chunk_size);
+	    (entry_size + chunk_size);
 
-	if(chunks < 2)
+	if (chunks < 2)
 		return 0;
 
-	for(; entries; entries--)
-		if((div_up(entries * entry_size, chunk_size) + entries) <=
-		   chunks)
+	for (; entries; entries--)
+		if ((div_up(entries * entry_size, chunk_size) + entries) <=
+		    chunks)
 			break;
 
 	return entries;
@@ -757,4 +757,3 @@
 
 
 #endif				/* #ifndef _LVM_H_INCLUDE */
-
drivers/md/lvm.c renamed from drivers/md/lvm.c.orig +255 -162

804 lines not on this page · raw message

drivers/md/lvm-internal.h renamed from drivers/md/lvm-internal.h.orig +12 -8
@@ -49,6 +49,10 @@
 extern vg_t *vg[];
 extern struct file_operations lvm_chr_fops;
 
+#ifndef	uchar
+typedef unsigned char uchar;
+#endif
+
 extern struct block_device_operations lvm_blk_dops;
 
 #define lvm_sectsize(dev) get_hardsect_size(dev)
@@ -85,24 +89,24 @@
 int lvm_get_blksize(kdev_t);
 int lvm_snapshot_alloc(lv_t *);
 int lvm_snapshot_fill_COW_page(vg_t *, lv_t *);
-int lvm_snapshot_COW(kdev_t, ulong, ulong, ulong, vg_t *vg, lv_t *);
+int lvm_snapshot_COW(kdev_t, ulong, ulong, ulong, vg_t * vg, lv_t *);
 int lvm_snapshot_remap_block(kdev_t *, ulong *, ulong, lv_t *);
 void lvm_snapshot_release(lv_t *);
 int lvm_write_COW_table_block(vg_t *, lv_t *);
 void lvm_hash_link(lv_block_exception_t *, kdev_t, ulong, lv_t *);
 int lvm_snapshot_alloc_hash_table(lv_t *);
-void lvm_drop_snapshot(vg_t *vg, lv_t *, const char *);
+void lvm_drop_snapshot(vg_t * vg, lv_t *, const char *);
 
 
 /* lvm_fs.c */
 void lvm_init_fs(void);
 void lvm_fin_fs(void);
 
-void lvm_fs_create_vg(vg_t *vg_ptr);
-void lvm_fs_remove_vg(vg_t *vg_ptr);
-devfs_handle_t lvm_fs_create_lv(vg_t *vg_ptr, lv_t *lv);
-void lvm_fs_remove_lv(vg_t *vg_ptr, lv_t *lv);
-void lvm_fs_create_pv(vg_t *vg_ptr, pv_t *pv);
-void lvm_fs_remove_pv(vg_t *vg_ptr, pv_t *pv);
+void lvm_fs_create_vg(vg_t * vg_ptr);
+void lvm_fs_remove_vg(vg_t * vg_ptr);
+devfs_handle_t lvm_fs_create_lv(vg_t * vg_ptr, lv_t * lv);
+void lvm_fs_remove_lv(vg_t * vg_ptr, lv_t * lv);
+void lvm_fs_create_pv(vg_t * vg_ptr, pv_t * pv);
+void lvm_fs_remove_pv(vg_t * vg_ptr, pv_t * pv);
 
 #endif
drivers/md/lvm-snap.c renamed from drivers/md/lvm-snap.c.orig +177 -144

695 lines not on this page · raw message

drivers/md/lvm-fs.c renamed from drivers/md/lvm-fs.c.orig +217 -131

657 lines not on this page · raw message

#1 lore raw

Krisztian,

running the SuSE LVM rpm with the SuSE kernel should work fine. Have you tried that yet ?

Regards,
Heinz -- The LVM Guy --

Quoted 50 lines · Krisztian Gyoerffy

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I follow the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like to keep my OS up to date I installed the 2.4.18 kernel source from SuSE on my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed exactly the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped compiling with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall

(quoted diff) +0 -3
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall

(quoted diff) +0 -3
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm_snap  -c -o lvm-snap.o lvm-snap.c

lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Afterwards I looked into the patch file, and into the lvm-snap.c at the given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in the /usr/src/linux/include/linux/iobuf.h header file. But this header file is completly different in the source of the 2.4.18 kernel than in the source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

Quoted 9 lines

I attach the lvm patch file generated by make and the iobuf.h file for both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Hello Heinz,

no I haven't, because till now I ever patched my kernels with any of the LVM versions I chose to compile the kernel by myself. And it was ok. This is the first time that I get a compilation error like this.

Can we fix the problem somehow, that I can compile then kernel with the LVM patch 1.0.7?

Because to tell the truth I don't really rely on that rpm from suse, since I had big troubles with an apache rpm, and finaly it turned out that there was a failure in it, and when I compiled apache from the source it was ok.

Thanks a lot

Krisztian

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Heinz J . Mauelshagen
Sent: Donnerstag, 30. Oktober 2003 11:24
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

running the SuSE LVM rpm with the SuSE kernel should work fine. Have you tried that yet ?

Regards,
Heinz -- The LVM Guy --

Quoted 11 lines · Krisztian Gyoerffy

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I follow the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like to keep my OS up to date I installed the 2.4.18 kernel source from SuSE

on

Quoted 3 lines

my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed

exactly

Quoted 4 lines

the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped

compiling

Quoted 4 lines

with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 4 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 15 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm_snap  -c -o lvm-snap.o lvm-snap.c

lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Quoted 1 line

Afterwards I looked into the patch file, and into the lvm-snap.c at

the

Quoted 2 lines

given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in

the

Quoted 6 lines

/usr/src/linux/include/linux/iobuf.h header file. But this header file is completly different in the source of the 2.4.18 kernel than in the source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

Quoted 9 lines

I attach the lvm patch file generated by make and the iobuf.h file for both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#3 lore raw

Krisztian,

you said you used the SuSE 2.4.18 source ? Get a mainline source and retry patching/compiling.

Regards,
Heinz -- The LVM Guy --

Quoted 86 lines · Krisztian Gyoerffy

Hello Heinz,

no I haven't, because till now I ever patched my kernels with any of the LVM versions I chose to compile the kernel by myself. And it was ok. This is the first time that I get a compilation error like this.

Can we fix the problem somehow, that I can compile then kernel with the LVM patch 1.0.7?

Because to tell the truth I don't really rely on that rpm from suse, since I had big troubles with an apache rpm, and finaly it turned out that there was a failure in it, and when I compiled apache from the source it was ok.

Thanks a lot

Krisztian

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Heinz J . Mauelshagen
Sent: Donnerstag, 30. Oktober 2003 11:24
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

running the SuSE LVM rpm with the SuSE kernel should work fine. Have you tried that yet ?

Regards,
Heinz -- The LVM Guy --

Quoted 11 lines · Krisztian Gyoerffy

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I follow the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like to keep my OS up to date I installed the 2.4.18 kernel source from SuSE

on

Quoted 3 lines

my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed

exactly

Quoted 4 lines

the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped

compiling

Quoted 4 lines

with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 4 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 15 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm_snap  -c -o lvm-snap.o lvm-snap.c

lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Quoted 20 lines
Quoted 1 line

Afterwards I looked into the patch file, and into the lvm-snap.c at

the

Quoted 2 lines

given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in

the

Quoted 15 lines

/usr/src/linux/include/linux/iobuf.h header file. But this header file is completly different in the source of the 2.4.18 kernel than in the source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

I attach the lvm patch file generated by make and the iobuf.h file for both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Hello Heinz,

Yes I did.
And so as far as I understood, it is not possible with the Suse release of the 2.4.18 kernel and the LVM 1.0.7 patch to get it compiled. Is that right?

Krisztian

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Heinz J . Mauelshagen
Sent: Freitag, 31. Oktober 2003 11:28
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

you said you used the SuSE 2.4.18 source ? Get a mainline source and retry patching/compiling.

Regards,
Heinz -- The LVM Guy --

Quoted 4 lines · Krisztian Gyoerffy

Hello Heinz,

no I haven't, because till now I ever patched my kernels with any of

the

Quoted 4 lines

LVM versions I chose to compile the kernel by myself. And it was ok. This is the first time that I get a compilation error like this.

Can we fix the problem somehow, that I can compile then kernel with

the

Quoted 8 lines

LVM patch 1.0.7?

Because to tell the truth I don't really rely on that rpm from suse, since I had big troubles with an apache rpm, and finaly it turned out that there was a failure in it, and when I compiled apache from the source it was ok.

Quoted 6 lines

Thanks a lot

Krisztian

-----Original Message-----
From: [email protected]

[mailto:[email protected]]On

Quoted 10 lines

Behalf Of Heinz J . Mauelshagen
Sent: Donnerstag, 30. Oktober 2003 11:24
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

Quoted 14 lines

running the SuSE LVM rpm with the SuSE kernel should work fine. Have you tried that yet ?

Regards,
Heinz -- The LVM Guy --

Quoted 6 lines · Krisztian Gyoerffy

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I

follow

Quoted 4 lines
Quoted 4 lines

the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like

to

Quoted 36 lines
Quoted 1 line

keep my OS up to date I installed the 2.4.18 kernel source from SuSE

on

Quoted 3 lines

my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed

exactly

Quoted 4 lines

the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped

compiling

Quoted 4 lines

with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 4 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 15 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm_snap  -c -o lvm-snap.o lvm-snap.c

lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Quoted 6 lines
Quoted 1 line

Afterwards I looked into the patch file, and into the lvm-snap.c at

the

Quoted 2 lines

given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in

the

Quoted 1 line

/usr/src/linux/include/linux/iobuf.h header file. But this header

file

Quoted 1 line
Quoted 1 line

is completly different in the source of the 2.4.18 kernel than in

the

Quoted 5 lines
Quoted 5 lines

source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

I attach the lvm patch file generated by make and the iobuf.h file

for

Quoted 8 lines
Quoted 8 lines

both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#5 lore raw
Quoted 7 lines · Krisztian Gyoerffy

Hello Heinz,

Yes I did.
And so as far as I understood, it is not possible with the Suse release of the 2.4.18 kernel and the LVM 1.0.7 patch to get it compiled. Is that right?

Likely (we do support mainline kernels only).

Regards,
Heinz -- The LVM Guy --

Quoted 121 lines

Krisztian

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Heinz J . Mauelshagen
Sent: Freitag, 31. Oktober 2003 11:28
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

you said you used the SuSE 2.4.18 source ? Get a mainline source and retry patching/compiling.

Regards,
Heinz -- The LVM Guy --

Quoted 4 lines · Krisztian Gyoerffy

Hello Heinz,

no I haven't, because till now I ever patched my kernels with any of

the

Quoted 4 lines

LVM versions I chose to compile the kernel by myself. And it was ok. This is the first time that I get a compilation error like this.

Can we fix the problem somehow, that I can compile then kernel with

the

Quoted 8 lines

LVM patch 1.0.7?

Because to tell the truth I don't really rely on that rpm from suse, since I had big troubles with an apache rpm, and finaly it turned out that there was a failure in it, and when I compiled apache from the source it was ok.

Quoted 6 lines

Thanks a lot

Krisztian

-----Original Message-----
From: [email protected]

[mailto:[email protected]]On

Quoted 10 lines

Behalf Of Heinz J . Mauelshagen
Sent: Donnerstag, 30. Oktober 2003 11:24
To: [email protected]
Subject: Re: [linux-lvm] Problem at compiling kernel 2.4.18 with lvm 1.0.7

Krisztian,

Quoted 14 lines

running the SuSE LVM rpm with the SuSE kernel should work fine. Have you tried that yet ?

Regards,
Heinz -- The LVM Guy --

Quoted 6 lines · Krisztian Gyoerffy

Hi LVM friends,

I have problems with the following scenario:

- I use SuSE linux 7.1 (I know, this might be a bit old, but I

follow

Quoted 4 lines
Quoted 4 lines

the rule "never touch a running system") with kernel 2.4.16 and lvm 1.0.7

- Since SuSE rolled out the latest kernel for 7.1 and I would like

to

Quoted 36 lines
Quoted 1 line

keep my OS up to date I installed the 2.4.18 kernel source from SuSE

on

Quoted 3 lines

my machine

- I tried to patch the kernel with the LVM 1.0.7, so I executed

exactly

Quoted 4 lines

the steps written in INSTALL and PATCH/README. Everything was ok

- Then I configured the rest of the kernel and tried to compile. But after a while, when it was compiling the LVM stuff, it stopped

compiling

Quoted 4 lines

with the following message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 4 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm  -c -o lvm.o lvm.c

gcc -D__KERNEL__ -I/usr/src/linux-2.4.18.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing

-fno-common

Quoted 15 lines
(quoted diff) +0 -2
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=lvm_snap  -c -o lvm-snap.o lvm-snap.c

lvm-snap.c: In function `lvm_snapshot_COW':
lvm-snap.c:365: structure has no member named `blocks' make[3]: *** [lvm-snap.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers/md' make[1]: *** [_subdir_md] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18.SuSE/drivers'
make: *** [_dir_drivers] Error 2

Quoted 6 lines
Quoted 1 line

Afterwards I looked into the patch file, and into the lvm-snap.c at

the

Quoted 2 lines

given position, line 365. There is the reference to the "blocks" variable of the iobuf structure. This iobuf structure is defined in

the

Quoted 1 line

/usr/src/linux/include/linux/iobuf.h header file. But this header

file

Quoted 16 lines
Quoted 1 line
Quoted 1 line

is completly different in the source of the 2.4.18 kernel than in

the

Quoted 5 lines
Quoted 5 lines

source of the 2.4.16 kernel, where the patch and compiling were ok.

Do you have any idea what can I do to get it compiled?

I attach the lvm patch file generated by make and the iobuf.h file

for

Quoted 8 lines
Quoted 8 lines

both versions 2.4.16 and 2.4.18.

Hope to hear from you soon, and thanks in advance

Krisztian

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-