All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] dmsetup and 2.6.31 kernel?
@ 2010-01-28  9:50 Hadmut Danisch
  2010-01-28 11:05 ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: Hadmut Danisch @ 2010-01-28  9:50 UTC (permalink / raw)
  To: linux-lvm

Hi,

just a question: 

With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup
and dmlosetup commands that used to work before do not work anymore. 

e.g.

dd if=/dev/zero of=/tmp/testdisk count=1000
dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'

produces

device-mapper: reload ioctl failed: Invalid argument
Command failed



an strace shows that all problems are caused by

ioctl(3, DM_TABLE_LOAD, 0x959c430)      = -1 EINVAL (Invalid argument)


Even compiling the latest source from your cvs repository does not
solve the problem. 


Any idea how to solve that problem?

regards
Hadmut

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] dmsetup and 2.6.31 kernel?
  2010-01-28  9:50 [linux-lvm] dmsetup and 2.6.31 kernel? Hadmut Danisch
@ 2010-01-28 11:05 ` Milan Broz
  2010-01-28 11:27   ` Bryn M. Reeves
  0 siblings, 1 reply; 3+ messages in thread
From: Milan Broz @ 2010-01-28 11:05 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Hadmut Danisch

On 01/28/2010 10:50 AM, Hadmut Danisch wrote:
> With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup
> and dmlosetup commands that used to work before do not work anymore. 
> 
> e.g.
> 
> dd if=/dev/zero of=/tmp/testdisk count=1000
> dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'

dm-loop target was never in upstream kernel, it is still available only
as separate kernel patch.

You had patched kernel previously perhaps?

Milan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] dmsetup and 2.6.31 kernel?
  2010-01-28 11:05 ` Milan Broz
@ 2010-01-28 11:27   ` Bryn M. Reeves
  0 siblings, 0 replies; 3+ messages in thread
From: Bryn M. Reeves @ 2010-01-28 11:27 UTC (permalink / raw)
  To: LVM general discussion and development

On Thu, 2010-01-28 at 12:05 +0100, Milan Broz wrote:
> On 01/28/2010 10:50 AM, Hadmut Danisch wrote:
> > With a 2.6.31 kernel (ubuntu) I run into the problem that some dmsetup
> > and dmlosetup commands that used to work before do not work anymore. 
> > 
> > e.g.
> > 
> > dd if=/dev/zero of=/tmp/testdisk count=1000
> > dmsetup create xxxtest --table '0 1000 loop /tmp/testdisk 0'
> 
> dm-loop target was never in upstream kernel, it is still available only
> as separate kernel patch.
> 
> You had patched kernel previously perhaps?

I think at some point someone was packaging unofficial Ubuntu kernels
with the dm-loop patch applied (I got some bugmail from launchpad about
it).

Hadmut, is it possible you had one of these installed previously?

Regards,
Bryn.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-28 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-28  9:50 [linux-lvm] dmsetup and 2.6.31 kernel? Hadmut Danisch
2010-01-28 11:05 ` Milan Broz
2010-01-28 11:27   ` Bryn M. Reeves

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.