Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3755056ybi; Fri, 5 Jul 2019 13:18:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxij57U80aX4yVoigHRmxhupVVDU62mSvL3D08iR+za0ohg7C1I1IKIqxwbY3sihOs+aAGa X-Received: by 2002:a17:902:7202:: with SMTP id ba2mr7755766plb.266.1562357914071; Fri, 05 Jul 2019 13:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562357914; cv=none; d=google.com; s=arc-20160816; b=FbvLFbupt9IyFzQOCcmuH0YH7Lu3DD9jLearDUek3l5csVLb/SsMNTKWRmTNP3jI1L WX4sZh9kkI4Xa3RYglM0E/VUL15f3GVPG1xJOc6mH6XSxWCd4/9muyafUOprYkljVx9S nDEqX+IaGByQtH5N/PB8f4CnUILxKYHgMnd0RFJiaIUiMQENXUZOrs7nUXF0xyqRJqmx iwVKlIC49x+XaKlNAWWujsCQKvb7ky8uhXZufq/OTCIuggrVDsElG2WmOBnfi+I96IME dN1C6VoakG7Op9gfM2CEfOaSGQuUlplha2x5E7jDhmIBJVlbqNYdeZq/rGNQYlaLGZsu VCeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id :dkim-signature:dkim-signature; bh=NrNadaoOjf0b4s8Mmh3qryH58aydYPexOu7mxNQol2U=; b=EvEpHLc42yhMz3j5QUv/wzFxCtrDZ+3mE29Tlb3sxNHi0qoE5rzn7fs4GUDih4lQiA 7/sNtfLf4EyZO1CLLtKrA6PW4SrGi+qektNY+OyiYHZDH5frIlwN+7n+tGQaKheQDN/x 2sWlbQ7G+vrhkpsf+5LsUgXTW/EdTsq7MTdqSrn4b8+nI2VAgWtXpaa/kTtLEoTBqINW M3bjk3SOTgaehKX+moqiipCdFPm/ZFhTgGeoHhsjYDneUeUcWjtOoCU7r5KlXyHgISWd cujTdacU+FHI2gSFzSCe3oisMq4P9eg7iy+i4yCL9tQPcvY18KTAf3xzpBcWKSxx8x0X OLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=FOFnX6fs; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=FOFnX6fs; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si10023906pfd.193.2019.07.05.13.18.20; Fri, 05 Jul 2019 13:18:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=FOFnX6fs; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=FOFnX6fs; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725894AbfGEURV (ORCPT + 99 others); Fri, 5 Jul 2019 16:17:21 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:59920 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbfGEURV (ORCPT ); Fri, 5 Jul 2019 16:17:21 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 7EED28EE1F7; Fri, 5 Jul 2019 13:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1562357841; bh=Rr0/c3YY6b7M6XGt7eOf4jjmV2d3TMURmcZoEpYrahY=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FOFnX6fsexFCfW5mVUquzMC+bE32BwR1CPHjvlO4jFuhi/W5UwqdXK99onoRuLSlD vPV4PeI6GTA25+sQ+tDl9kUxG7ZGE8Bx6Owp9UlW/go1GD22tDCYa0f/VEnIOtJPql 9AAD+80Vj6CtXPqU0XebDXt9F4MGG3Vuj7/a/8Nk= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3-_X30Ba98IQ; Fri, 5 Jul 2019 13:17:21 -0700 (PDT) Received: from jarvis.lan (unknown [50.35.68.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 27D648EE0CF; Fri, 5 Jul 2019 13:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1562357841; bh=Rr0/c3YY6b7M6XGt7eOf4jjmV2d3TMURmcZoEpYrahY=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FOFnX6fsexFCfW5mVUquzMC+bE32BwR1CPHjvlO4jFuhi/W5UwqdXK99onoRuLSlD vPV4PeI6GTA25+sQ+tDl9kUxG7ZGE8Bx6Owp9UlW/go1GD22tDCYa0f/VEnIOtJPql 9AAD+80Vj6CtXPqU0XebDXt9F4MGG3Vuj7/a/8Nk= Message-ID: <1562357840.10899.9.camel@HansenPartnership.com> Subject: [PATCH 4/4] palo: add support for formatting as ext4 From: James Bottomley To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Parisc List Date: Fri, 05 Jul 2019 13:17:20 -0700 In-Reply-To: <1562357231.10899.5.camel@HansenPartnership.com> References: <1562357231.10899.5.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Now that iplboot can read ext4 filesystem, allow palo to create them with the palo --format-as=4 option. Signed-off-by: James Bottomley --- palo/palo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/palo/palo.c b/palo/palo.c index e088993..26da01b 100644 --- a/palo/palo.c +++ b/palo/palo.c @@ -506,8 +506,8 @@ do_formatted(int init, int media, const char *medianame, int partition, } } - sprintf(cmd, "mke2fs %s -O^resize_inode -b %d -l %s %s", do_format == 3 ? "-j" : "", - EXT2_BLOCKSIZE, badblockfilename, partitionname); + sprintf(cmd, "mke2fs -t ext%d -O^resize_inode -b %d -l %s %s", + do_format, EXT2_BLOCKSIZE, badblockfilename, partitionname); if (verbose) printf("Executing: %s\n", cmd); @@ -868,6 +868,8 @@ main(int argc, char *argv[]) format_as = 2; else if(strcmp(optarg, "3") == 0) format_as = 3; + else if (strcmp(optarg, "4") == 0) + format_as = 4; else error(0, argv[0]); break; -- 2.16.4