]> git.pld-linux.org Git - packages/xen.git/blame - xen-reisermodule.patch
- BRs for hvm extensions
[packages/xen.git] / xen-reisermodule.patch
CommitLineData
bfb0f9c5 1--- xen-3.0.3_0-src/tools/pygrub/src/fsys/reiser/reisermodule.c 2006-10-15 14:22:03.000000000 +0200
2+++ xen-3.0.3_0-src/tools/pygrub/src/fsys/reiser/reisermodule.c-new 2006-11-24 01:31:53.058527280 +0100
3@@ -17,7 +17,7 @@
4 #include <stdlib.h>
5 #include <stdio.h>
6
7-#include <dal/file_dal.h>
8+#include <dal/file.h>
9 #include <reiserfs/reiserfs.h>
10
11 #if (PYTHON_API_VERSION >= 1011)
12@@ -42,12 +42,12 @@
13 reiserfs_file_t *file;
14 };
15
16-void file_dal_close(dal_t *dal) {
17+void file_close(dal_t *dal) {
18
19 if (!dal) return;
20
21- close((int)(unsigned long)dal->dev);
22- dal_free(dal);
23+ close((int)(unsigned long)dal->entity);
24+// dal_free(dal);
25 }
26
27 /* reiser file object */
28@@ -195,7 +195,7 @@
29 if (fs->fs != NULL)
30 {
31 reiserfs_fs_close(fs->fs);
32- file_dal_close(fs->dal);
33+ file_close(fs->dal);
34 fs->fs = NULL;
35 }
36 Py_INCREF(Py_None);
37@@ -218,13 +218,13 @@
38 return NULL;
39 }
40
41- if (!(dal = file_dal_open(name, block_size, O_RDONLY))) {
42+ if (!(dal = file_open(name, block_size, O_RDONLY))) {
43 PyErr_SetString(PyExc_ValueError, "Couldn't create device abstraction");
44 return NULL;
45 }
46
47 if (!(rfs = reiserfs_fs_open_fast(dal, dal))) {
48- file_dal_close(dal);
49+ file_close(dal);
50 PyErr_SetString(PyExc_ValueError, "unable to open file");
51 return NULL;
52 }
53@@ -265,7 +265,7 @@
54 if (fs->fs != NULL)
55 {
56 reiserfs_fs_close(fs->fs);
57- file_dal_close(fs->dal);
58+ file_close(fs->dal);
59 fs->fs = NULL;
60 }
61 PyObject_DEL(fs);
This page took 0.429365 seconds and 4 git commands to generate.