]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Pass streams_xattr_config to fgetxattr_multi()
authorVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 10:40:46 +0000 (12:40 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
To be used in later patches

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_xattr.c

index 24fb0cb8e4cf2c4be10993ae59b112b7c796ab4e..2a57194858375a88817763989ad13fc936a5d58d 100644 (file)
@@ -45,7 +45,8 @@ struct stream_io {
        vfs_handle_struct *handle;
 };
 
-static ssize_t fgetxattr_multi(struct files_struct *fsp,
+static ssize_t fgetxattr_multi(const struct streams_xattr_config *config,
+                              struct files_struct *fsp,
                               const char *name,
                               void *value,
                               size_t size)
@@ -102,7 +103,7 @@ again:
                return ENOMEM;
        }
 
-       sizeret = fgetxattr_multi(fsp, ea_name, val, attr_size);
+       sizeret = fgetxattr_multi(config, fsp, ea_name, val, attr_size);
        if (sizeret == -1 && errno == ERANGE && attr_size < max_xattr_size) {
                attr_size = max_xattr_size;
                goto again;