summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Jin <jin.xiao@samsung.com>2018-08-03 11:23:51 +0800
committerXiao Jin <jin.xiao@samsung.com>2018-08-03 16:04:29 +0800
commitc2b1299800f0f1f8cd4794fc5e55bdc20e35721d (patch)
tree350a36920548cc8d3a2b9ca38142b2254fd5fcdd
parent23097fe3923a2570ab49dcb9a31ff22dbaeb0d86 (diff)
downloadmic-c2b1299800f0f1f8cd4794fc5e55bdc20e35721d.tar.gz
mic-c2b1299800f0f1f8cd4794fc5e55bdc20e35721d.tar.bz2
mic-c2b1299800f0f1f8cd4794fc5e55bdc20e35721d.zip
ext4 images are created with inode size 256 bytes
Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e
-rwxr-xr-xmic/utils/fs_related.py3
1 files changed, 3 insertions, 0 deletions
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])