summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-04 23:32:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-04 23:32:50 +0000
commit25a91b0a1b0ab3aea1afa6b144c6525924a55f9b (patch)
treeaaf01de2656c4ed984897c593b79c086a59cc0f6 /perl-install/c/stuff.xs.pm
parent8def886f3e44af53bc1116c875c32da0d1d6cee9 (diff)
downloaddrakx-25a91b0a1b0ab3aea1afa6b144c6525924a55f9b.tar
drakx-25a91b0a1b0ab3aea1afa6b144c6525924a55f9b.tar.gz
drakx-25a91b0a1b0ab3aea1afa6b144c6525924a55f9b.tar.bz2
drakx-25a91b0a1b0ab3aea1afa6b144c6525924a55f9b.tar.xz
drakx-25a91b0a1b0ab3aea1afa6b144c6525924a55f9b.zip
add is_ext3
Diffstat (limited to 'perl-install/c/stuff.xs.pm')
-rw-r--r--perl-install/c/stuff.xs.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm
index 235e929c3..a3952fb28 100644
--- a/perl-install/c/stuff.xs.pm
+++ b/perl-install/c/stuff.xs.pm
@@ -77,6 +77,10 @@ void rpmError_callback(void) {
';
$ENV{C_DRAKX} and print '
+
+#include <ext2fs/ext2_fs.h>
+#include <ext2fs/ext2fs.h>
+
#include <gdk/gdkx.h>
void initIMPS2() {
@@ -127,6 +131,23 @@ pcmcia_probe()
$ENV{C_DRAKX} and print '
+int
+is_ext3(device_name)
+ char * device_name
+ CODE:
+ {
+ ext2_filsys fs;
+ int retval = ext2fs_open (device_name, 0, 0, 0, unix_io_manager, &fs);
+ if (retval) {
+ RETVAL = 0;
+ } else {
+ RETVAL = fs->super->s_feature_compat & EXT3_FEATURE_COMPAT_HAS_JOURNAL;
+ ext2fs_close(fs);
+ }
+ }
+ OUTPUT:
+ RETVAL
+
void
setMouseLive(display, type, emulate3buttons)
char *display