Updated performance values in README.

Added ability to ignore xattrs & permissions.
Ignore setting xattr errors due to an unknown issues.
This commit is contained in:
Caleb J. Gardner
2026-03-04 13:28:29 -06:00
parent edfe919c1b
commit a4e23a840d
3 changed files with 25 additions and 13 deletions
+4 -5
View File
@@ -183,15 +183,14 @@ pub fn setMetadata(self: Inode, alloc: std.mem.Allocator, archive: *Archive, fil
const xattrs = try archive.xattr_table.get(alloc, idx);
defer alloc.free(xattrs);
for (xattrs) |kv| {
defer {
alloc.free(kv.key);
alloc.free(kv.value);
}
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.value);
if (res != 0) {
if (options.verbose)
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;
}
}
}