hw/9pfs: enable xattr (mockup) support for synth fs driver
The synth backend is used for testing only. Enable xattr operations by making lsetxattr and lremovexattr callbacks to return success result. They are still actually not doing anything, they just pretend to be working to prevent 9pfs server from erroring out on xattr requests. This allows the subsequent test case patches to verify xattr FID limit enforcement. Link: https://lore.kernel.org/qemu-devel/9c1c7128135f3bd9c2f62a3f64bb730b6a94ec7a.1781361555.git.qemu_oss@crudebyte.com Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Christian Schoenebeck committed
Jun 13, 2026 at 16:55 UTC
0e3085ddc7fb137b727829913c20ad9d08577bdb
1 file changed
+4
-4
hw/9pfs/9p-synth.c
+4
-4
@@ -477,15 +477,15 @@ static int synth_lsetxattr(FsContext *ctx, V9fsPath *path,
477
const char *name, void *value,
478
size_t size, int flags)
479
{
480
- errno = ENOTSUP;
481
- return -1;
480
+ /* pretend it worked */
481
+ return 0;
482
}
483
484
static int synth_lremovexattr(FsContext *ctx,
485
V9fsPath *path, const char *name)
486
{
487
- errno = ENOTSUP;
488
- return -1;
487
+ /* pretend it worked */
488
+ return 0;
489
}
490
491
static int synth_name_to_path(FsContext *ctx, V9fsPath *dir_path,