Re: [mdadm PATCH 1/1] Check major number of block device when querying md device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/30/2018 01:49 AM, Xiao Ni wrote:
> It give error message when query a non md device.
> mdadm /dev/null
> /dev/null: is an md device, but gives "Inappropriate ioctl for device" when queried
> 
> It's introduced by commit 5cb8599 and 8d0cd09
> At first it checks whether a block is md device by function md_get_version.
> In this function it does mainly two jobs:
> 1. send request by ioctl. (now it can be replace by argument ioctlerr)
> 2. check the block device major number which we don't do this.
> 
> We add the second judgement in this patch.
> 
> Fixes: 5cb8599 and 8d0cd09
> Reported-by: Karsten Weiss <karsten.weiss@xxxxxxxx>
> Signed-off-by: Xiao Ni <xni@xxxxxxxxxx>
> ---
>  Query.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Applied!

Thanks,
Jes

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux