Merge branch 'main' into inode_finish

This commit is contained in:
Caleb Gardner
2026-03-08 22:34:50 -05:00
committed by GitHub
+3 -2
View File
@@ -171,13 +171,14 @@ pub fn setMetadata(self: Inode, alloc: std.mem.Allocator, tables: *Tables, fil:
const xattrs = try tables.xattr_table.get(alloc, idx); const xattrs = try tables.xattr_table.get(alloc, idx);
defer alloc.free(xattrs); defer alloc.free(xattrs);
for (xattrs) |kv| { for (xattrs) |kv| {
const res = std.os.linux.fsetxattr(fil.handle, kv.key[0.. :0], kv.value.ptr, kv.value.len, 0); const res = std.os.linux.fsetxattr(fil.handle, @ptrCast(kv.key), @ptrCast(kv.value), kv.value.len, 0);
alloc.free(kv.key); alloc.free(kv.key);
alloc.free(kv.value); alloc.free(kv.value);
if (res != 0) { if (res != 0) {
if (options.verbose) if (options.verbose)
options.verbose_writer.?.print("fsetxattr has result of: {}\n", .{res}) catch {}; options.verbose_writer.?.print("fsetxattr has result of: {}\n", .{res}) catch {};
return error.SetXattr; //TODO: Currently this seems a bit flakey, so we just ignore the result... for now.
// return error.SetXattr;
} }
} }
} }