Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
snajpa committed Dec 4, 2024
1 parent 4f09ecc commit 2279a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/os/freebsd/zfs/zfs_vnops_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -5196,13 +5196,15 @@ zfs_dup_attrname_maybe_rename(const char *name)
size_t len = strlen(name);

if (zfs_xattr_compat)
return (ret);
goto orig;

if (ZFS_XA_NS_PREFIX_FORBIDDEN(name)) {
ret = kmem_alloc(len + 6, KM_SLEEP);
snprintf(ret, len + 5, "user.%s", name);
return (ret);
}

orig:
ret = kmem_alloc(len + 1, KM_SLEEP);
memcpy(ret, name, len);
return (ret);
Expand Down

0 comments on commit 2279a9b

Please sign in to comment.