From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org,
Parisc List <linux-parisc@vger.kernel.org>
Subject: [PATCH 4/4] palo: add support for formatting as ext4
Date: Fri, 05 Jul 2019 13:17:20 -0700 [thread overview]
Message-ID: <1562357840.10899.9.camel@HansenPartnership.com> (raw)
In-Reply-To: <1562357231.10899.5.camel@HansenPartnership.com>
Now that iplboot can read ext4 filesystem, allow palo to create them
with the palo --format-as=4 option.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
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
prev parent reply other threads:[~2019-07-05 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-05 20:07 [PATCH 0/4] bring parisc linux into the modern age by adding ext4 support to the bootloader James Bottomley
2019-07-05 20:15 ` [PATCH 1/4] iplboot: eliminate unused struct bootfs James Bottomley
2019-07-05 20:16 ` [PATCH 2/4] iplboot: update the ext2_fs.h header James Bottomley
2019-07-05 20:16 ` [PATCH 3/4] iplboot: add ext4 support James Bottomley
2019-07-05 20:17 ` James Bottomley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1562357840.10899.9.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.