From: fanyong Date: Mon, 7 Aug 2006 03:42:50 +0000 (+0000) Subject: Add mkfs functions create_iam and iam_insert for mdt, all the mkfs work can be done... X-Git-Tag: v1_8_0_110~486^2~1253 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=112329a22691337068dbb38456fd60db78e9e5ab;p=fs%2Flustre-release.git Add mkfs functions create_iam and iam_insert for mdt, all the mkfs work can be done by mkfs_lustre, no other mkfs script are needed. Add malloc validity check in function convert_hostnames. --- diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 6d28548..ec7b2d1 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -1327,7 +1327,6 @@ static int create_iam(enum iam_fmt_t fmt, int keysize, int recsize, goto out; } - /* form leaf */ memset(buf, 0, blocksize); if (fmt == FMT_LFIX) { lfix_leaf(buf, blocksize, keysize, ptrsize, recsize);