diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-03 13:35:39 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-03 14:35:02 +1000 |
commit | 7b4d511bc638b5c927dacc324628bd5db30e6dda (patch) | |
tree | a13d87ebb43272bad68ba6b80184dd288de8b8a4 /source4/ntvfs/posix/pvfs_xattr.c | |
parent | 8ef60901ce84ac90769de8e6f1369e10bf9b1b99 (diff) | |
download | samba-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/pvfs_xattr.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_xattr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_xattr.c b/source4/ntvfs/posix/pvfs_xattr.c index 04ad1786ac..82ce579676 100644 --- a/source4/ntvfs/posix/pvfs_xattr.c +++ b/source4/ntvfs/posix/pvfs_xattr.c @@ -24,6 +24,7 @@ #include "../lib/util/unix_privs.h" #include "librpc/gen_ndr/ndr_xattr.h" #include "param/param.h" +#include "ntvfs/posix/posix_eadb_proto.h" /* pull a xattr as a blob @@ -81,7 +82,7 @@ static NTSTATUS delete_xattr(struct pvfs_state *pvfs, const char *attr_name, const char *fname, int fd) { if (pvfs->ea_db) { - return delete_xattr_tdb(pvfs, attr_name, fname, fd); + return delete_posix_eadb(pvfs, attr_name, fname, fd); } return delete_xattr_system(pvfs, attr_name, fname, fd); } @@ -92,7 +93,7 @@ static NTSTATUS delete_xattr(struct pvfs_state *pvfs, const char *attr_name, NTSTATUS pvfs_xattr_unlink_hook(struct pvfs_state *pvfs, const char *fname) { if (pvfs->ea_db) { - return unlink_xattr_tdb(pvfs, fname); + return unlink_posix_eadb(pvfs, fname); } return unlink_xattr_system(pvfs, fname); } |