From ee9b725874836b4c52a8b5f2db9af78ba8e183c8 Mon Sep 17 00:00:00 2001 From: Xiao Jin Date: Fri, 3 Aug 2018 11:23:51 +0800 Subject: [PATCH] ext4 images are created with inode size 256 bytes Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e --- mic/utils/fs_related.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 11f6801..a914139 100755 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -489,6 +489,9 @@ class ExtDiskMount(DiskMount): msger.verbose("Formating %s filesystem on %s" % (self.fstype, self.disk.device)) cmdlist = [self.mkfscmd, "-F", "-L", self.fslabel, "-m", "1", "-b", str(self.blocksize), "-U", self.uuid] + #raw device do not maintain i-node,so -I is invalid param + if not isinstance(self.disk,RawDisk): + cmdlist.extend(["-I",str(256)]) if self.__extopts: cmdlist.extend(self.__extopts.split()) cmdlist.extend([self.disk.device]) -- 2.7.4