summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-06-17 21:42:39 +0000
committerOlivier Blin <oblin@mandriva.com>2009-06-17 21:42:39 +0000
commit88b99f870f4d7d0019e1593d9545e8bb7c05f0f1 (patch)
tree387774c77c9d1597404b9b71d59fd896216b09df /lib
parentae2a09cf9f6899d5526d56ed92b3091c14a6d153 (diff)
downloaddraklive-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar
draklive-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.gz
draklive-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.bz2
draklive-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.tar.xz
draklive-88b99f870f4d7d0019e1593d9545e8bb7c05f0f1.zip
allow to set inode size in {media}{inode_size} for ext2/ext3 file systems
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Utils.pm4
1 files changed, 2 insertions, 2 deletions
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";
}