summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-13 08:44:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-13 08:44:38 +0000
commite1933587d5bda45845e33ebe761fc917ca516fad (patch)
tree6c3711a00856e2c2aa9bde16a65d12367359e806 /perl-install/c/stuff.xs.pl
parent4f9a0847bf8627db6e513ff41491713cab21c17c (diff)
downloaddrakx-e1933587d5bda45845e33ebe761fc917ca516fad.tar
drakx-e1933587d5bda45845e33ebe761fc917ca516fad.tar.gz
drakx-e1933587d5bda45845e33ebe761fc917ca516fad.tar.bz2
drakx-e1933587d5bda45845e33ebe761fc917ca516fad.tar.xz
drakx-e1933587d5bda45845e33ebe761fc917ca516fad.zip
really handle LABEL=XXX in fstab (as used by redhat) (no xfs labels yet)
Diffstat (limited to 'perl-install/c/stuff.xs.pl')
-rw-r--r--perl-install/c/stuff.xs.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl
index 26e6ce413..4573cdc3f 100644
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -219,6 +219,23 @@ is_ext3(device_name)
OUTPUT:
RETVAL
+char *
+get_ext2_label(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_volume_name;
+ ext2fs_close(fs);
+ }
+ }
+ OUTPUT:
+ RETVAL
+
void
setlocale()
CODE: