# Re: \[PATCH\] md SET\_BITMAP\_FILE compat ioctl

- From: Neil Brown \<hidden\>
- Date: 2006-09-28 07:31:23 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2006/09/6598534
- Thread: https://ratatoskr.run/linux-raid/2006/09/6598534/t.md

```text
On Friday September 22, paul.clements@steeleye.com wrote:
> The SET_BITMAP_FILE ioctl currently doesn't have a compat entry, so on 
> 64-bit systems a 32-bit mdadm will fail:
> 
> Sep 20 16:34:52 caspian kernel: ioctl32(mdadm:8056): Unknown cmd fd(3) 
> cmd(8004092b){00} arg(00000004) on /dev/md0
> 
> The fix is to build a 64-bit mdadm or apply the following patch (compile 
> tested only).

Thanks. I'll make sure it gets to akpm.

NeilBrown

> 
> --
> Paul
> --- ./include/linux/compat_ioctl.h.orig	2006-09-22 11:14:53.000000000 -0400
> +++ ./include/linux/compat_ioctl.h	2006-09-22 11:15:24.000000000 -0400
> @@ -121,6 +121,7 @@ ULONG_IOCTL(START_ARRAY)
>  COMPATIBLE_IOCTL(STOP_ARRAY)
>  COMPATIBLE_IOCTL(STOP_ARRAY_RO)
>  COMPATIBLE_IOCTL(RESTART_ARRAY_RW)
> +ULONG_IOCTL(SET_BITMAP_FILE)
>  /* DM */
>  COMPATIBLE_IOCTL(DM_VERSION_32)
>  COMPATIBLE_IOCTL(DM_REMOVE_ALL_32)
```
