Skip to contentSkip to conversation

Next set of device-mapper patches

DISCUSSION Singh, Santosh (STSD) 2 participants 8 messages Jun 15, 2006 – Jun 16, 2006 1 message not in the archive Device mapper

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

I am applying the device mapper ioctl patches(as mentioned in the mail
below) in order as given in the "series" file on linux-2.6.16.16. I think the patch is not being applied ,since it prompts many times e.g

patching file arch/alpha/kernel/smp.c
Reversed (or previously applied) patch detected! Assume -R? [n]

After applying the patches, I tried to build the kernel but it fail with the error.

arch/i386/kernel/ptrace.c: In function `do_syscall_trace':
arch/i386/kernel/ptrace.c:675: warning: passing arg 1 of audit_syscall_exit' makes pointer from integer without a cast arch/i386/kernel/ptrace.c:675: error: too few arguments to function audit_syscall_exit'
arch/i386/kernel/ptrace.c:724: warning: passing arg 1 of audit_syscall_entry' makes pointer from integer without a cast arch/i386/kernel/ptrace.c:724: error: too few arguments to function audit_syscall_entry'
arch/i386/kernel/ptrace.c:730: warning: passing arg 1 of audit_syscall_exit' makes pointer from integer without a cast arch/i386/kernel/ptrace.c:730: error: too few arguments to function audit_syscall_exit'
make[1]: *** [arch/i386/kernel/ptrace.o] Error 1
make: *** [arch/i386/kernel] Error 2

Whether any one has tried this ioctl patches provided by Alasdair or used the "quilt" to apply all the patches to linux kernel.

TIA
Santosh

Date: Fri, 9 Jun 2006 22:22:34 +0100
From: Alasdair G Kergon <[email protected]>
Subject: [dm-devel] Next set of device-mapper patches
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

I'm preparing the next set of minor patches to go upstream and would appreciate comments and testing. They're built on top of the patches currently in -mm.

dm-support-ioctls-on-mapped-devices.patch
Mechanics to support ioctls on certain devices.

dm-linear-support-ioctls.patch
ioctl support for the linear target

dm-mpath-support-ioctls.patch
ioctl support for the multipath target

dm-export-blkdev_driver_ioctl.patch
Export another function to avoid calling some code twice.

dm-mirror-log-sector-size-fix.patch dm-mirror-log-refactor-context.patch
Make mirror log work regardless of hard sector size.

dm-table-split_args-handle-no-input.patch
Trivial extension to table_split_args.

dm-consolidate-creation-functions.patch
Merge dm_create and dm_create_with_minor.

dm-exports.patch
Make various dm functions available to modules officially.

dm-create-error-table.patch
Add a library function for modules to use.

dm-prevent-removal-if-open.patch
Reinstate earlier dm behaviour so open devices can't be removed.

These patches are all at:
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/
based on 2.6.17-rc6. (Apply in the order shown in the series file, or use 'quilt' directly.)

If there are any further small patches I've missed (and aren't yet in the
editing directory) please remind me of them! Once these are out of the way, I'll get onto meatier things like adding netlink & the enhancements to
snapshot, multipath & raid*.

Alasdair
--
[email protected]

#2 lore raw
Quoted 2 lines · Santosh (STSD)

below) in order as given in the "series" file on linux-2.6.16.16. I think the patch is not being applied ,since it prompts many times e.g

You need to look at the comments against the patches and decide which ones to apply.

For example, if you're starting from 2.6.16.16
you cannot apply:
patch-2.6.17-rc4
patch-2.6.17-rc4-rc5
patch-2.6.17-rc5-rc6

Nor the section of kgdb patches (which may need tweaking if you did want kgdb against a different kernel).

Alasdair

Signature · 1 line
[email protected]
#3 lore raw

I am testing the device-mapper ioctl support.
Which all the patches required for this and can I I apply those
patches on linux-2.6.16.

Regards
Santosh

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alasdair G Kergon
Sent: Thursday, June 15, 2006 8:27 PM
To: P S, Suresh (STSD)
Cc: device-mapper development
Subject: Re: [dm-devel] Next set of device-mapper patches

Quoted 2 lines · Santosh (STSD)

below) in order as given in the "series" file on linux-2.6.16.16. I think the patch is not being applied ,since it prompts many times e.g

You need to look at the comments against the patches and decide which ones to apply.

For example, if you're starting from 2.6.16.16 you cannot apply:
patch-2.6.17-rc4
patch-2.6.17-rc4-rc5
patch-2.6.17-rc5-rc6

Nor the section of kgdb patches (which may need tweaking if you did want kgdb against a different kernel).

Alasdair
--
[email protected]

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#4 lore raw
Quoted 3 lines · Santosh (STSD)

I am testing the device-mapper ioctl support.
Which all the patches required for this and can I I apply those
patches on linux-2.6.16.

Start from:

##############################################################################
# Submitted upstream
##############################################################################

dm-snapshot-unify-chunk_size.patch

...
and stop at:

dm-export-blkdev_driver_ioctl.patch

Alasdair

Signature · 1 line
[email protected]
#5 lore raw

I tried to patch on 2.6.16 as following and got the error below

linux-2.6.16]# patch -p1 < ../patches/patch-2.6.17-rc4

....
patching file drivers/usb/media/et61x251_tas5130d1b.c patching file drivers/usb/media/ibmcam.c patch unexpectedly ends in middle of line
patch: **** malformed patch at line 698588

patch -p1 < ../patches/patch-2.6.17-rc4-rc5
patching file drivers/video/matrox/matroxfb_base.h
can't find file to patch at input line 11918
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN linux-2.6.17-rc4/fs/9p/fcall.c linux-2.6.17-rc5/fs/9p/fcall.c
|--- linux-2.6.17-rc4/fs/9p/fcall.c 2006-05-25 02:26:26.065239650
+0000
|+++ linux-2.6.17-rc5/fs/9p/fcall.c 2006-05-25 02:26:32.265906812
+0000
--------------------------
File to patch:

Could you advise me how to patch.

Regards
Santosh

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alasdair G Kergon
Sent: Thursday, June 15, 2006 8:50 PM
To: P S, Suresh (STSD)
Cc: device-mapper development
Subject: Re: [dm-devel] Next set of device-mapper patches

Quoted 3 lines · Santosh (STSD)

I am testing the device-mapper ioctl support.
Which all the patches required for this and can I I apply those
patches on linux-2.6.16.

Start from:

########################################################################
######
# Submitted upstream

########################################################################
######

dm-snapshot-unify-chunk_size.patch

...
and stop at:

dm-export-blkdev_driver_ioctl.patch

Alasdair
--
[email protected]

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#6 lore raw
Quoted 1 line · Santosh (STSD)

I tried to patch on 2.6.16 as following and got the error below

Strange. That file got truncated. I've uploaded it again.

Alasdair

Signature · 1 line
[email protected]
#7 lore raw

Hello All,

What are the type of ioctl supported in this IOCTL patches.

Regards
Santosh

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alasdair G Kergon
Sent: Thursday, June 15, 2006 9:47 PM
To: device-mapper development
Subject: Re: [dm-devel] Next set of device-mapper patches

Quoted 1 line · Santosh (STSD)

I tried to patch on 2.6.16 as following and got the error below

Strange. That file got truncated. I've uploaded it again.

Alasdair
--
[email protected]

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#8 lore raw
In reply to Alasdair G Kergon

Hi,

With the uploaded patches I am able to apply the patches and build the
kernel, but on boot
it displays the following messages & kernel panics.

Insmod: error inserting '/lib/scsi_mod.o' : -1 invalid format ERROR:/bin/insmod exited abnormally! (pid 327)

I am getting these messages for all these modules sd_mod.o,cciss.o, sg.o ide-disk.o,jbd.o and ext3.o .

I have patched the 2.6.16 kernel and my development system is having 2.6.9-22.0.2.Elsmp.

Any advice on this.

TIA
Santosh

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alasdair G Kergon
Sent: Thursday, June 15, 2006 9:47 PM
To: device-mapper development
Subject: Re: [dm-devel] Next set of device-mapper patches

Quoted 1 line · Santosh (STSD)

I tried to patch on 2.6.16 as following and got the error below

Strange. That file got truncated. I've uploaded it again.

Alasdair
--
[email protected]

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel