From 88b99f870f4d7d0019e1593d9545e8bb7c05f0f1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 17 Jun 2009 21:42:39 +0000 Subject: allow to set inode size in {media}{inode_size} for ext2/ext3 file systems --- lib/MDV/Draklive/Utils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/MDV/Draklive') diff --git a/lib/MDV/Draklive/Utils.pm b/lib/MDV/Draklive/Utils.pm index 8e9ed65..906680f 100644 --- a/lib/MDV/Draklive/Utils.pm +++ b/lib/MDV/Draklive/Utils.pm @@ -63,11 +63,11 @@ sub device_allocate_file { #- format $device as type $type sub device_mkfs { - my ($device, $type) = @_; + my ($device, $type, $o_inode_size) = @_; if ($type eq 'vfat') { run_('mkfs.vfat', $device); } elsif (member($type, 'ext2', 'ext3')) { - run_("mkfs.$type", "-m", 0, if_(!-b $device, '-F'), $device); + run_("mkfs.$type", "-m", 0, if_($o_inode_size, '-I', $o_inode_size), if_(!-b $device, '-F'), $device); } else { die "unable to mkfs for unsupported media type $type\n"; } -- cgit v1.2.1