mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
s4:torture:vfs_fruit: pass xattr name as arg to torture_setup_local_xattr()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11278 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit fe4909f1cab72f80715a996a63290462102aabc6)
This commit is contained in:
parent
047cbb35e2
commit
3c1e7cb224
@ -1060,6 +1060,7 @@ static bool write_stream(struct smb2_tree *tree,
|
||||
static bool torture_setup_local_xattr(struct torture_context *tctx,
|
||||
const char *path_option,
|
||||
const char *name,
|
||||
const char *xattr,
|
||||
const char *metadata,
|
||||
size_t size)
|
||||
{
|
||||
@ -1076,7 +1077,7 @@ static bool torture_setup_local_xattr(struct torture_context *tctx,
|
||||
|
||||
path = talloc_asprintf(tctx, "%s/%s", spath, name);
|
||||
|
||||
result = setxattr(path, AFPINFO_EA_NETATALK, metadata, size, 0);
|
||||
result = setxattr(path, xattr, metadata, size, 0);
|
||||
if (result != 0) {
|
||||
ret = false;
|
||||
}
|
||||
@ -1195,6 +1196,7 @@ static bool test_read_atalk_metadata(struct torture_context *tctx,
|
||||
|
||||
ret = torture_setup_local_xattr(tctx, "localdir",
|
||||
BASEDIR "/torture_read_metadata",
|
||||
AFPINFO_EA_NETATALK,
|
||||
metadata_xattr, sizeof(metadata_xattr));
|
||||
if (ret == false) {
|
||||
goto done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user