Print this page
Adding AoE support to nza-kernel

*** 16,29 **** --- 16,32 ---- * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ + /* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * * Copyright 2012 Milan Jurik. All rights reserved. + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. */ #include <stdlib.h> #include <stdio.h> #include <strings.h>
*** 533,544 **** if ((len = strlen(mbString + 4)) != SNS_EUI_16) { return (-1); } else if (checkHexUpper(mbString + 4) != 0) { return (-1); } ! } else { ! return (-1); } /* * We have a validated name string. * Go ahead and set the length and copy it. --- 536,549 ---- if ((len = strlen(mbString + 4)) != SNS_EUI_16) { return (-1); } else if (checkHexUpper(mbString + 4) != 0) { return (-1); } ! /* ! * If none of iqn., wwn., and eui. matches, it might be a ! * name string for AoE. ! */ } /* * We have a validated name string. * Go ahead and set the length and copy it.