]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: return real minor number for static minors
authorEd Cashin <ecashin@coraid.com>
Tue, 18 Dec 2012 00:04:06 +0000 (16:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:25 +0000 (17:15 -0800)
commitf9a3dc372e0c2277f70e600a706f94b636b4a0a7
tree2e031c215e742fb3cde7f2cd41230318667ba1a1
parent16d5e9aac86c6831f1a9036d41cfc45917f3ffb3
aoe: return real minor number for static minors

The value returned by the static minor device number number allocator is
the real minor number, so it must be multiplied by the supported number
of partitions per aoedev.

Without this fix the support for systems without udev is incomplete, and
the few users of aoe on such systems will have surprising results when
device nodes names do not match the AoE target.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoedev.c