From: Junghoon Kim Date: Mon, 13 Jul 2020 03:57:05 +0000 (+0900) Subject: Create btrfs images with the metadata single option X-Git-Tag: submit/trunk/20200723.141412~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fe7326b38c6e0961633dbaeba6dd0cdedd2e158;p=tools%2Fmic.git Create btrfs images with the metadata single option Tizen product and reference targets embed the NAND flash device as the primary storage. The btrfs filesystem uses the metadata single option as default if a NAND storage is detected. For this, create btrfs images with the metadata single option. Change-Id: I99a3ad08589e51cd7ff8cb6e0275aa03ecdad035 Signed-off-by: Junghoon Kim --- diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 87daea3..160b885 100755 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -699,7 +699,7 @@ class BtrfsDiskMount(DiskMount): return msger.verbose("Formating %s filesystem on %s" % (self.fstype, self.disk.device)) - rc = runner.show([self.mkfscmd, "-L", self.fslabel, self.disk.device]) + rc = runner.show([self.mkfscmd, "-L", self.fslabel, "-m", "single", self.disk.device]) if rc != 0: raise MountError("Error creating %s filesystem on disk %s" % (self.fstype,self.disk.device))