All of lore.kernel.org
 help / color / mirror / Atom feed
* unknown ioctl32 cmd
@ 2006-12-30 23:20 Jan Engelhardt
  2006-12-31  4:43 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2006-12-30 23:20 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Hi,



this line in mdadm-2.5.4

Detail.c:
185:  ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 &&

causes a dmesg warning when running `mdadm -D /dev/md0`:

ioctl32(mdadm:2946): Unknown cmd fd(7) cmd(50000915){10} arg(ff2905d0) 
on /dev/md0

on Aurora Linux corona_2.90 with 2.6.18-1.2798.al3.1smp(sparc64). The 
raid array was created using `mdadm -C /dev/md0 -l 1 -n 2 missing 
/dev/sdb2 -e 1.0`. Given that "case GET_BITMAP_FILE" is handled in 
(2.6.18.5), I wonder what exactly is causing this.


Keep me on Cc, but you always do that. Thanks :)

	-`J'
-- 

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

* Re: unknown ioctl32 cmd
  2006-12-30 23:20 unknown ioctl32 cmd Jan Engelhardt
@ 2006-12-31  4:43 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2006-12-31  4:43 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-raid

On Sunday December 31, jengelh@linux01.gwdg.de wrote:
> Hi,
> 
> 
> 
> this line in mdadm-2.5.4
> 
> Detail.c:
> 185:  ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 &&
> 
> causes a dmesg warning when running `mdadm -D /dev/md0`:
> 
> ioctl32(mdadm:2946): Unknown cmd fd(7) cmd(50000915){10} arg(ff2905d0) 
> on /dev/md0
> 
> on Aurora Linux corona_2.90 with 2.6.18-1.2798.al3.1smp(sparc64). The 
> raid array was created using `mdadm -C /dev/md0 -l 1 -n 2 missing 
> /dev/sdb2 -e 1.0`. Given that "case GET_BITMAP_FILE" is handled in 
> (2.6.18.5), I wonder what exactly is causing this.
> 
> 
> Keep me on Cc, but you always do that. Thanks :)
> 
> 	-`J'
> -- 

That would be fixed by the patch below which is post 2.6.18.

NeilBrown


http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=da3ed32fe568148ede256975d40825ffcdac767b;hp=2e333e89860431d22816c1bdaa2ea72c2753396e


From: NeilBrown <neilb@suse.de>
Date: Sat, 21 Oct 2006 17:24:08 +0000 (-0700)
Subject: [PATCH] md: add another COMPAT_IOCTL for md
X-Git-Tag: v2.6.19-rc3
X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=da3ed32fe568148ede256975d40825ffcdac767b

[PATCH] md: add another COMPAT_IOCTL for md

..  so that you can use bitmaps with 32bit userspace on a 64 bit kernel.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
---

--- a/include/linux/compat_ioctl.h
+++ b/include/linux/compat_ioctl.h
@@ -131,6 +131,7 @@ COMPATIBLE_IOCTL(RUN_ARRAY)
 COMPATIBLE_IOCTL(STOP_ARRAY)
 COMPATIBLE_IOCTL(STOP_ARRAY_RO)
 COMPATIBLE_IOCTL(RESTART_ARRAY_RW)
+COMPATIBLE_IOCTL(GET_BITMAP_FILE)
 ULONG_IOCTL(SET_BITMAP_FILE)
 /* DM */
 COMPATIBLE_IOCTL(DM_VERSION_32)

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

end of thread, other threads:[~2006-12-31  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-30 23:20 unknown ioctl32 cmd Jan Engelhardt
2006-12-31  4:43 ` Neil Brown

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.