summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-04 23:37:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-04 23:37:08 +0000
commitc718e2dfd677b2d3e6acce231eecd2632c5ac5e0 (patch)
tree536dd6dd9ec83f70025679aa990c3c1afcc48df1 /perl-install/fsedit.pm
parent4eeb677b836ce75355b1a555796e6ecb0fddb89f (diff)
downloaddrakx-c718e2dfd677b2d3e6acce231eecd2632c5ac5e0.tar
drakx-c718e2dfd677b2d3e6acce231eecd2632c5ac5e0.tar.gz
drakx-c718e2dfd677b2d3e6acce231eecd2632c5ac5e0.tar.bz2
drakx-c718e2dfd677b2d3e6acce231eecd2632c5ac5e0.tar.xz
drakx-c718e2dfd677b2d3e6acce231eecd2632c5ac5e0.zip
add ext3 support
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 37b875f22..85cd6f6b6 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -60,7 +60,16 @@ arch() !~ /^sparc/ ? (
) : (),
);
-sub typeOfPart { typeFromMagic(devices::make($_[0]), @partitions_signatures) }
+sub typeOfPart {
+ my $dev = devices::make($_[0]);
+ my $t = typeFromMagic($dev, @partitions_signatures);
+ if ($t == 0x83) {
+ #- there is no magic to differentiate ext3 and ext2. Using libext2fs
+ #- to check if it has a journal
+ $t = 0x483 if c::is_ext3($dev);
+ }
+ $t;
+}
#-######################################################################################
#- Functions