Create btrfs images with the metadata single option 44/238344/1
authorJunghoon Kim <jhoon20.kim@samsung.com>
Mon, 13 Jul 2020 03:57:05 +0000 (12:57 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Mon, 13 Jul 2020 03:57:05 +0000 (12:57 +0900)
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 <jhoon20.kim@samsung.com>
mic/utils/fs_related.py

index 87daea3..160b885 100755 (executable)
@@ -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))