display filesystem size of each images 34/128034/1
authorDohyung Kim <dohyung2.kim@samsung.com>
Thu, 4 May 2017 06:42:12 +0000 (15:42 +0900)
committerDohyung Kim <dohyung2.kim@samsung.com>
Thu, 4 May 2017 06:43:24 +0000 (15:43 +0900)
  ...
  filesystem size of dzImage : 5378048 bytes
  filesystem size of modules.img : 12582912 bytes
  filesystem size of rootfs.img : 759287808 bytes
  filesystem size of system-data.img : 75726848 bytes
  filesystem size of user.img : 71839744 bytes
  ...

Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I5f75ba76205b9cfcfcfbb10d9df49c2f7ae673b3

mic/imager/loop.py

index c0620a4..937e51d 100644 (file)
@@ -455,6 +455,11 @@ class LoopImageCreator(BaseImageCreator):
             else:
                 self.image_files.setdefault('image_files', []).append(item['name'])
 
+        for item in os.listdir(self._imgdir):
+            imgfile = os.path.join(self._imgdir, item)
+            imgsize = os.path.getsize(imgfile)
+            msger.info("filesystem size of %s : %s bytes" % (item, imgsize))
+
         if not self.pack_to:
             for item in os.listdir(self._imgdir):
                 shutil.move(os.path.join(self._imgdir, item),