aoecmd.c (d54d35ac6605161a593e3f4411de338ef81b5263) aoecmd.c (6583303c5e324a918ee1d57201acd9869f3be6da)
1/* Copyright (c) 2007 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoecmd.c
4 * Filesystem request handling methods
5 */
6
7#include <linux/ata.h>
8#include <linux/slab.h>

--- 1345 unchanged lines hidden (view full) ---

1354 * warrant a loud message for this special case.
1355 */
1356 aoemajor = get_unaligned_be16(&h->major);
1357 if (aoemajor == 0xfff) {
1358 printk(KERN_ERR "aoe: Warning: shelf address is all ones. "
1359 "Check shelf dip switches.\n");
1360 return;
1361 }
1/* Copyright (c) 2007 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoecmd.c
4 * Filesystem request handling methods
5 */
6
7#include <linux/ata.h>
8#include <linux/slab.h>

--- 1345 unchanged lines hidden (view full) ---

1354 * warrant a loud message for this special case.
1355 */
1356 aoemajor = get_unaligned_be16(&h->major);
1357 if (aoemajor == 0xfff) {
1358 printk(KERN_ERR "aoe: Warning: shelf address is all ones. "
1359 "Check shelf dip switches.\n");
1360 return;
1361 }
1362 if (h->minor >= NPERSHELF) {
1363 pr_err("aoe: e%ld.%d %s, %d\n",
1364 aoemajor, h->minor,
1365 "slot number larger than the maximum",
1366 NPERSHELF-1);
1367 return;
1368 }
1362
1363 sysminor = SYSMINOR(aoemajor, h->minor);
1364 if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
1365 printk(KERN_INFO "aoe: e%ld.%d: minor number too large\n",
1366 aoemajor, (int) h->minor);
1367 return;
1368 }
1369

--- 116 unchanged lines hidden ---
1369
1370 sysminor = SYSMINOR(aoemajor, h->minor);
1371 if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
1372 printk(KERN_INFO "aoe: e%ld.%d: minor number too large\n",
1373 aoemajor, (int) h->minor);
1374 return;
1375 }
1376

--- 116 unchanged lines hidden ---