linamh/sys-block/partclone/files/partclone-0.2.36-progsreiserfs-0.3.1-1.patch
2011-12-03 21:16:15 +01:00

41 lines
1.6 KiB
Diff

Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2011-11-19
Initial Package Version: 0.2.36
Origin: me
Upstream Status: unknown
Description: correct renamed function name in newer progsrieserfs libs
diff -Naur partclone-0.2.36.orig/configure.ac partclone-0.2.36/configure.ac
--- partclone-0.2.36.orig/configure.ac 2011-11-19 20:39:17.583443525 +0000
+++ partclone-0.2.36/configure.ac 2011-11-19 20:39:42.280335674 +0000
@@ -136,7 +136,7 @@
)
AC_CHECK_LIB([reiserfs], [reiserfs_fs_open], true,
AC_MSG_ERROR([*** Reiserfs library (libreiserfs) not found]))
-AC_CHECK_LIB([dal], [file_dal_open], true,
+AC_CHECK_LIB([dal], [file_open], true,
AC_MSG_ERROR([*** Reiserfs depend library (libdal) not found]))
AC_MSG_CHECKING(version of libreiserfs)
reiserfs_version=`gcc $srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lreiserfs -DREISERFS`
diff -Naur partclone-0.2.36.orig/src/reiserfsclone.c partclone-0.2.36/src/reiserfsclone.c
--- partclone-0.2.36.orig/src/reiserfsclone.c 2011-11-19 20:39:17.588073180 +0000
+++ partclone-0.2.36/src/reiserfsclone.c 2011-11-19 20:40:04.680919172 +0000
@@ -38,7 +38,7 @@
/// open device
static void fs_open(char* device){
- if (!(dal = (dal_t*)file_dal_open(device, DEFAULT_BLOCK_SIZE, O_RDONLY))) {
+ if (!(dal = (dal_t*)file_open(device, DEFAULT_BLOCK_SIZE, O_RDONLY))) {
log_mesg(0, 1, 1, fs_opt.debug, "%s: Couldn't create device abstraction for %s.\n", __FILE__, device);
}
@@ -59,7 +59,7 @@
static void fs_close(){
reiserfs_fs_close(fs);
- file_dal_close(dal);
+ file_close(dal);
}