Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: unknown ioctl32 cmd
Date: Sun, 31 Dec 2006 15:43:28 +1100	[thread overview]
Message-ID: <17815.16368.340739.88928@notabene.brown> (raw)
In-Reply-To: message from Jan Engelhardt on Sunday December 31

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)

      reply	other threads:[~2006-12-31  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-30 23:20 unknown ioctl32 cmd Jan Engelhardt
2006-12-31  4:43 ` Neil Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17815.16368.340739.88928@notabene.brown \
    --to=neilb@suse.de \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox