lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 05 Jul 2019 13:17:20 -0700 From: James Bottomley <James.Bottomley@...senPartnership.com> To: linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org, Parisc List <linux-parisc@...r.kernel.org> Subject: [PATCH 4/4] palo: add support for formatting as ext4 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@...senPartnership.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
Powered by blists - more mailing lists