diff options
author | Ed Cashin <ecashin@coraid.com> | 2012-12-17 16:04:06 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 17:15:25 -0800 |
commit | b91316f2b7bc0b1d128a9890a2a4895f7e1c74fc (patch) | |
tree | 2e031c215e742fb3cde7f2cd41230318667ba1a1 | |
parent | 10935d052eef9441a551571ff5853f84a00b2fd4 (diff) | |
download | linux-3.10-b91316f2b7bc0b1d128a9890a2a4895f7e1c74fc.tar.gz linux-3.10-b91316f2b7bc0b1d128a9890a2a4895f7e1c74fc.tar.bz2 linux-3.10-b91316f2b7bc0b1d128a9890a2a4895f7e1c74fc.zip |
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>
-rw-r--r-- | drivers/block/aoe/aoedev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index 80b3d3ea10c..aaaea662a72 100644 --- a/drivers/block/aoe/aoedev.c +++ b/drivers/block/aoe/aoedev.c @@ -95,7 +95,7 @@ minor_get_static(ulong *sysminor, ulong aoemaj, int aoemin) } else set_bit(n, used_minors); spin_unlock_irqrestore(&used_minors_lock, flags); - *sysminor = n; + *sysminor = n * AOE_PARTITIONS; out: return error; } |