Complete the ea->xattr rename in vfs_xattr_tdb
authorVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 10:10:06 +0000 (11:10 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Jan 2008 10:10:06 +0000 (11:10 +0100)
source/modules/vfs_xattr_tdb.c

index 597dd38eaf5ef5af17f6c52978f92200ecdde15b..0acca51c5d991e3844d9dbc89ade6ea93ee7a68b 100644 (file)
@@ -558,7 +558,8 @@ static bool xattr_tdb_init(int snum, struct db_context **p_db)
        struct db_context *db;
        const char *dbname;
 
-       dbname = lp_parm_const_string(snum, "ea", "tdb", lock_path("eas.tdb"));
+       dbname = lp_parm_const_string(snum, "xattr", "tdb",
+                                     lock_path("xattr.tdb"));
 
        if (dbname == NULL) {
                errno = ENOTSUP;
@@ -660,7 +661,7 @@ static int xattr_tdb_rmdir(vfs_handle_struct *handle, const char *path)
  * Destructor for the VFS private data
  */
 
-static void close_ea_db(void **data)
+static void close_xattr_db(void **data)
 {
        struct db_context **p_db = (struct db_context **)data;
        TALLOC_FREE(*p_db);
@@ -688,14 +689,14 @@ static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service,
        }
 
        if (!xattr_tdb_init(snum, &db)) {
-               DEBUG(5, ("Could not init ea tdb\n"));
+               DEBUG(5, ("Could not init xattr tdb\n"));
                lp_do_parameter(snum, "ea support", "False");
                return 0;
        }
 
        lp_do_parameter(snum, "ea support", "True");
 
-       SMB_VFS_HANDLE_SET_DATA(handle, db, close_ea_db,
+       SMB_VFS_HANDLE_SET_DATA(handle, db, close_xattr_db,
                                struct db_context, return -1);
 
        return 0;