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:
+4
-5
@@ -180,15 +180,14 @@ inline fn setPermissionAndXattr(self: Inode, alloc: std.mem.Allocator, archive:
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user