The 'name' can be later used by other backends to find the operations
structure for this backend.
*/
-NTSTATUS pvfs_acl_register(const struct pvfs_acl_ops *ops)
+NTSTATUS pvfs_acl_register(TALLOC_CTX *ctx, const struct pvfs_acl_ops *ops)
{
struct pvfs_acl_ops *new_ops;
return NT_STATUS_OBJECT_NAME_COLLISION;
}
- backends = talloc_realloc(talloc_autofree_context(), backends, struct pvfs_acl_backend, num_backends+1);
+ backends = talloc_realloc(ctx, backends,
+ struct pvfs_acl_backend, num_backends+1);
NT_STATUS_HAVE_NO_MEMORY(backends);
new_ops = (struct pvfs_acl_ops *)talloc_memdup(backends, ops, sizeof(*ops));
.acl_load = pvfs_acl_load_nfs4,
.acl_save = pvfs_acl_save_nfs4
};
- return pvfs_acl_register(&ops);
+ return pvfs_acl_register(ctx, &ops);
}
.acl_load = pvfs_acl_load_xattr,
.acl_save = pvfs_acl_save_xattr
};
- return pvfs_acl_register(&ops);
+ return pvfs_acl_register(ctx, &ops);
}