summaryrefslogtreecommitdiff
blob: 2132a63787113c276262ae49e424a86535b7e0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
diff -urN xen-3.0.2/tools/pygrub/src/fsys/reiser/reisermodule.c xen-3.0.2-b/tools/pygrub/src/fsys/reiser/reisermodule.c
--- xen-3.0.2/tools/pygrub/src/fsys/reiser/reisermodule.c	2006-04-09 18:05:53.000000000 -0400
+++ xen-3.0.2-b/tools/pygrub/src/fsys/reiser/reisermodule.c	2006-08-18 12:51:42.000000000 -0400
@@ -17,7 +17,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-#include <dal/file_dal.h>
+#include <dal/file.h>
 #include <reiserfs/reiserfs.h>
 
 #if (PYTHON_API_VERSION >= 1011)
@@ -46,8 +46,7 @@
 
 	if (!dal) return;
 
-	close((int)(unsigned long)dal->dev);
-	dal_free(dal);
+	dal_close(dal);
 }
 
 /* reiser file object */
@@ -195,7 +194,7 @@
     if (fs->fs != NULL)
     {
         reiserfs_fs_close(fs->fs);
-        file_dal_close(fs->dal);
+        file_close(fs->dal);
 		fs->fs = NULL;
     }
     Py_INCREF(Py_None);
@@ -218,13 +217,13 @@
         return NULL;
     }
 
-    if (!(dal = file_dal_open(name, block_size, O_RDONLY))) {
+    if (!(dal = file_open(name, block_size, O_RDONLY))) {
         PyErr_SetString(PyExc_ValueError, "Couldn't create device abstraction");
         return NULL;    
     }
     
     if (!(rfs = reiserfs_fs_open_fast(dal, dal))) {
-		file_dal_close(dal);
+		file_close(dal);
         PyErr_SetString(PyExc_ValueError, "unable to open file");
         return NULL;
     }
@@ -265,7 +264,7 @@
     if (fs->fs != NULL)
 	{
         reiserfs_fs_close(fs->fs);
-		file_dal_close(fs->dal);
+		file_close(fs->dal);
 		fs->fs = NULL;
 	}
 	PyObject_DEL(fs);