* Re: Next set of device-mapper patches
[not found] <3EC60E80D9AA7C4E910ACC9DA2003AC30606C55C@BGEEXC02.asiapacific.cpqcorp.net>
@ 2006-06-21 11:44 ` Milan Broz
2006-06-21 13:07 ` AJ Lewis
0 siblings, 1 reply; 12+ messages in thread
From: Milan Broz @ 2006-06-21 11:44 UTC (permalink / raw)
To: Singh, Santosh (STSD); +Cc: P S, Suresh (STSD), dm-devel
Hello,
ioctl patch simple route ioctls to underlying block device
-> it supports all ioctl which are supported by your physical device.
e.g.
in simple case you have volume /dev/mapper/VolGroup00-LogVol0
mapped to physical device /dev/sda, inquiry ioctl (using tools from sg3_util)
sg_inq /dev/sda
is the same as
sg_inq /dev/mapper/VolGroup00-LogVol0
In the case of multipath target ioctl command is sent through
active path.
This patch doesn't add some special ioctls to manage dm devices yet.
Milan
--
Milan Broz
mbroz@redhat.com
Singh, Santosh (STSD) wrote:
> Hi Broz,
>
> I build the device-mapper ioctl patches created by you & Alasdair. I
> am able to load the modules but wanted to know how to use the ioctl
> call or how to issue the ioctl call on the device mapper devices.
>
>
> Thanks & Regards
> Santosh Singh
> Hewlett-Packard
>
> -----Original Message-----
> From: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
> 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
>
> On Thu, Jun 15, 2006 at 09:16:56PM +0530, Singh, Santosh (STSD) wrote:
>> 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
> --
> agk@redhat.com
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Next set of device-mapper patches
2006-06-21 11:44 ` Next set of device-mapper patches Milan Broz
@ 2006-06-21 13:07 ` AJ Lewis
2006-06-21 13:26 ` Milan Broz
0 siblings, 1 reply; 12+ messages in thread
From: AJ Lewis @ 2006-06-21 13:07 UTC (permalink / raw)
To: device-mapper development
[-- Attachment #1.1: Type: text/plain, Size: 697 bytes --]
On Wed, Jun 21, 2006 at 01:44:15PM +0200, Milan Broz wrote:
> ioctl patch simple route ioctls to underlying block device
> -> it supports all ioctl which are supported by your physical device.
>
> e.g.
> in simple case you have volume /dev/mapper/VolGroup00-LogVol0
> mapped to physical device /dev/sda, inquiry ioctl (using tools from
> sg3_util)
> sg_inq /dev/sda
> is the same as
> sg_inq /dev/mapper/VolGroup00-LogVol0
>
> In the case of multipath target ioctl command is sent through
> active path.
So what happens when you have multiple block devices in the volume? And what
if those block devices have different levels of support for the ioctls?
--
AJ Lewis
[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Next set of device-mapper patches
2006-06-21 13:07 ` AJ Lewis
@ 2006-06-21 13:26 ` Milan Broz
2006-07-03 16:29 ` Singh, Santosh (STSD)
0 siblings, 1 reply; 12+ messages in thread
From: Milan Broz @ 2006-06-21 13:26 UTC (permalink / raw)
To: device-mapper development
AJ Lewis wrote:
> On Wed, Jun 21, 2006 at 01:44:15PM +0200, Milan Broz wrote:
>> ioctl patch simple route ioctls to underlying block device
>> -> it supports all ioctl which are supported by your physical device.
>>
>> e.g.
>> in simple case you have volume /dev/mapper/VolGroup00-LogVol0
>> mapped to physical device /dev/sda, inquiry ioctl (using tools from
>> sg3_util)
>> sg_inq /dev/sda
>> is the same as
>> sg_inq /dev/mapper/VolGroup00-LogVol0
>>
>> In the case of multipath target ioctl command is sent through
>> active path.
>
> So what happens when you have multiple block devices in the volume? And what
> if those block devices have different levels of support for the ioctls?
Currently supported for simple mapping with single target only,
if there are more than one target, it will fail with error -ENOTTY.
Milan
--
Milan Broz
mbroz@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Next set of device-mapper patches
2006-06-21 13:26 ` Milan Broz
@ 2006-07-03 16:29 ` Singh, Santosh (STSD)
0 siblings, 0 replies; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-07-03 16:29 UTC (permalink / raw)
To: device-mapper development; +Cc: P S, Suresh (STSD)
Hi,
I am able to bind the dm device with raw device successfully but when
trying to open in READ/WRITE mode , the application is not able to open
. For binding the raw device I have used the RAW_SETBIND/RAW_GETBIND
ioctls.
raw -qa shows the raw device is bounded to device-maper device.
[root@ioctl]# raw -qa
/dev/raw/raw1: bound to major 253, minor 1
[root@ioctl]#ls /dev/mapper/mpath103 -l
brw-rw---- 1 root disk 253, 1 Jul 3 16:18 /dev/mapper/mpath103
If any one used the raw device which is bound to device-mapper device
using the RAW_SETBIND/RAW_GETBIND,please help.
TIA
Santosh
-----Original Message-----
From: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
On Behalf Of Milan Broz
Sent: Wednesday, June 21, 2006 6:57 PM
To: device-mapper development
Subject: Re: [dm-devel] Next set of device-mapper patches
AJ Lewis wrote:
> On Wed, Jun 21, 2006 at 01:44:15PM +0200, Milan Broz wrote:
>> ioctl patch simple route ioctls to underlying block device
>> -> it supports all ioctl which are supported by your physical device.
>>
>> e.g.
>> in simple case you have volume /dev/mapper/VolGroup00-LogVol0 mapped
>> to physical device /dev/sda, inquiry ioctl (using tools from
>> sg3_util)
>> sg_inq /dev/sda
>> is the same as
>> sg_inq /dev/mapper/VolGroup00-LogVol0
>>
>> In the case of multipath target ioctl command is sent through active
>> path.
>
> So what happens when you have multiple block devices in the volume?
> And what if those block devices have different levels of support for
the ioctls?
Currently supported for simple mapping with single target only, if there
are more than one target, it will fail with error -ENOTTY.
Milan
--
Milan Broz
mbroz@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20060610160024.36F82733FA@hormel.redhat.com>]
* Re:Next set of device-mapper patches
[not found] <20060610160024.36F82733FA@hormel.redhat.com>
@ 2006-06-15 14:52 ` Singh, Santosh (STSD)
2006-06-15 14:56 ` Next " Alasdair G Kergon
0 siblings, 1 reply; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-06-15 14:52 UTC (permalink / raw)
To: dm-devel; +Cc: P S, Suresh (STSD)
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 <agk@redhat.com>
Subject: [dm-devel] Next set of device-mapper patches
To: dm-devel@redhat.com
Message-ID: <20060609212234.GF7606@agk.surrey.redhat.com>
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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Next set of device-mapper patches
2006-06-15 14:52 ` Singh, Santosh (STSD)
@ 2006-06-15 14:56 ` Alasdair G Kergon
2006-06-15 15:12 ` Singh, Santosh (STSD)
0 siblings, 1 reply; 12+ messages in thread
From: Alasdair G Kergon @ 2006-06-15 14:56 UTC (permalink / raw)
To: P S, Suresh (STSD); +Cc: device-mapper development
On Thu, Jun 15, 2006 at 08:22:02PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Next set of device-mapper patches
2006-06-15 14:56 ` Next " Alasdair G Kergon
@ 2006-06-15 15:12 ` Singh, Santosh (STSD)
2006-06-15 15:20 ` Alasdair G Kergon
0 siblings, 1 reply; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-06-15 15:12 UTC (permalink / raw)
To: device-mapper development; +Cc: P S, Suresh (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.
Regards
Santosh
-----Original Message-----
From: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
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
On Thu, Jun 15, 2006 at 08:22:02PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Next set of device-mapper patches
2006-06-15 15:12 ` Singh, Santosh (STSD)
@ 2006-06-15 15:20 ` Alasdair G Kergon
2006-06-15 15:46 ` Singh, Santosh (STSD)
0 siblings, 1 reply; 12+ messages in thread
From: Alasdair G Kergon @ 2006-06-15 15:20 UTC (permalink / raw)
To: P S, Suresh (STSD); +Cc: device-mapper development
On Thu, Jun 15, 2006 at 08:42:59PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Next set of device-mapper patches
2006-06-15 15:20 ` Alasdair G Kergon
@ 2006-06-15 15:46 ` Singh, Santosh (STSD)
2006-06-15 16:16 ` Alasdair G Kergon
0 siblings, 1 reply; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-06-15 15:46 UTC (permalink / raw)
To: device-mapper development
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: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
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
On Thu, Jun 15, 2006 at 08:42:59PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Next set of device-mapper patches
2006-06-15 15:46 ` Singh, Santosh (STSD)
@ 2006-06-15 16:16 ` Alasdair G Kergon
2006-06-16 14:31 ` Singh, Santosh (STSD)
2006-06-16 14:36 ` Singh, Santosh (STSD)
0 siblings, 2 replies; 12+ messages in thread
From: Alasdair G Kergon @ 2006-06-15 16:16 UTC (permalink / raw)
To: device-mapper development
On Thu, Jun 15, 2006 at 09:16:56PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Next set of device-mapper patches
2006-06-15 16:16 ` Alasdair G Kergon
@ 2006-06-16 14:31 ` Singh, Santosh (STSD)
2006-06-16 14:36 ` Singh, Santosh (STSD)
1 sibling, 0 replies; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-06-16 14:31 UTC (permalink / raw)
To: device-mapper development; +Cc: P S, Suresh (STSD)
Hello All,
What are the type of ioctl supported in this IOCTL patches.
Regards
Santosh
-----Original Message-----
From: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
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
On Thu, Jun 15, 2006 at 09:16:56PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Next set of device-mapper patches
2006-06-15 16:16 ` Alasdair G Kergon
2006-06-16 14:31 ` Singh, Santosh (STSD)
@ 2006-06-16 14:36 ` Singh, Santosh (STSD)
1 sibling, 0 replies; 12+ messages in thread
From: Singh, Santosh (STSD) @ 2006-06-16 14:36 UTC (permalink / raw)
To: device-mapper development; +Cc: P S, Suresh (STSD)
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: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
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
On Thu, Jun 15, 2006 at 09:16:56PM +0530, Singh, Santosh (STSD) wrote:
> 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
--
agk@redhat.com
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Next set of device-mapper patches
@ 2006-06-09 21:22 Alasdair G Kergon
0 siblings, 0 replies; 12+ messages in thread
From: Alasdair G Kergon @ 2006-06-09 21:22 UTC (permalink / raw)
To: dm-devel
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
--
agk@redhat.com
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-07-03 16:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3EC60E80D9AA7C4E910ACC9DA2003AC30606C55C@BGEEXC02.asiapacific.cpqcorp.net>
2006-06-21 11:44 ` Next set of device-mapper patches Milan Broz
2006-06-21 13:07 ` AJ Lewis
2006-06-21 13:26 ` Milan Broz
2006-07-03 16:29 ` Singh, Santosh (STSD)
[not found] <20060610160024.36F82733FA@hormel.redhat.com>
2006-06-15 14:52 ` Singh, Santosh (STSD)
2006-06-15 14:56 ` Next " Alasdair G Kergon
2006-06-15 15:12 ` Singh, Santosh (STSD)
2006-06-15 15:20 ` Alasdair G Kergon
2006-06-15 15:46 ` Singh, Santosh (STSD)
2006-06-15 16:16 ` Alasdair G Kergon
2006-06-16 14:31 ` Singh, Santosh (STSD)
2006-06-16 14:36 ` Singh, Santosh (STSD)
2006-06-09 21:22 Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.