summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-03 13:35:39 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-03 14:35:02 +1000
commit7b4d511bc638b5c927dacc324628bd5db30e6dda (patch)
treea13d87ebb43272bad68ba6b80184dd288de8b8a4 /source4/ntvfs/posix/python
parent8ef60901ce84ac90769de8e6f1369e10bf9b1b99 (diff)
downloadsamba-7b4d511bc638b5c927dacc324628bd5db30e6dda.tar.gz
samba-7b4d511bc638b5c927dacc324628bd5db30e6dda.tar.bz2
samba-7b4d511bc638b5c927dacc324628bd5db30e6dda.zip
s4-ntvfs: Rename xattr_tdb.c to posix_eadb.c and make more generally useful
This is now a small library, to be called from ntvfs, python and vfs_posix_eadb. The rename makes it clear that this has a different DB format to that used by vfs_xattr_tdb, and matches the posix:eadb smb.conf parameter used to configure it. Andrew Bartlett
Diffstat (limited to 'source4/ntvfs/posix/python')
-rw-r--r--source4/ntvfs/posix/python/pyxattr_tdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/python/pyxattr_tdb.c b/source4/ntvfs/posix/python/pyxattr_tdb.c
index 1fdae7606d..d1be879514 100644
--- a/source4/ntvfs/posix/python/pyxattr_tdb.c
+++ b/source4/ntvfs/posix/python/pyxattr_tdb.c
@@ -20,11 +20,12 @@
#include <Python.h>
#include "includes.h"
+#include "system/filesys.h"
#include "tdb_compat.h"
#include "lib/tdb_wrap/tdb_wrap.h"
#include "librpc/ndr/libndr.h"
#include "lib/util/wrap_xattr.h"
-#include "ntvfs/posix/vfs_posix.h"
+#include "ntvfs/posix/posix_eadb.h"
#include "libcli/util/pyerrors.h"
#include "param/pyparam.h"
@@ -59,8 +60,8 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
talloc_free(mem_ctx);
return NULL;
}
- status = push_xattr_blob_tdb_raw(eadb, mem_ctx, attribute, filename, -1,
- &blob);
+ status = push_xattr_blob_tdb_raw(eadb, attribute, filename, -1,
+ &blob);
if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
talloc_free(mem_ctx);