diff options
-rwxr-xr-x | mic/utils/fs_related.py | 3 |
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]) |