From: Daniel Schultz <d.schultz@phytec.de>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH morty v2] wic: partition: Run fsck on EXT file systems
Date: Fri, 31 Mar 2017 14:51:47 +0200 [thread overview]
Message-ID: <1490964707-38823-1-git-send-email-d.schultz@phytec.de> (raw)
Mkfs may create EXT file systems which can only be optimized by fsck
and not by itself, e.g. directory optimization (in Pass 3A).
To prevent those optimizations during runtime, it will be performed after
the creation of an EXT file system.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
scripts/lib/wic/partition.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 3b3bd2d..152eb7b 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -239,6 +239,9 @@ class Partition():
(self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
+ mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs)
+ exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
+
def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
native_sysroot, pseudo):
"""
--
1.9.1
next reply other threads:[~2017-03-31 12:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 12:51 Daniel Schultz [this message]
2017-03-31 17:14 ` [PATCH morty v2] wic: partition: Run fsck on EXT file systems Khem Raj
2017-04-03 7:47 ` Daniel Schultz
2017-04-03 15:41 ` Khem Raj
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=1490964707-38823-1-git-send-email-d.schultz@phytec.de \
--to=d.schultz@phytec.de \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox