From 5206b8228e17a2505c7a1af071135c753cc82d75 Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Tue, 21 Jan 2020 15:06:10 -0800 Subject: [PATCH] Disable get_numeric_property for xattr on FreeBSD FreeBSD doesn't have a mount flag for determining the disposition of xattr. Disable so that it is fetched by the default route so that 'zfs get xattr' returns the correct value. Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9862 --- lib/libzfs/libzfs_dataset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index b5600ca62b..48d6563232 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -2344,7 +2344,9 @@ get_numeric_property(zfs_handle_t *zhp, zfs_prop_t prop, zprop_source_t *src, case ZFS_PROP_EXEC: case ZFS_PROP_READONLY: case ZFS_PROP_SETUID: +#ifndef __FreeBSD__ case ZFS_PROP_XATTR: +#endif case ZFS_PROP_NBMAND: *val = getprop_uint64(zhp, prop, source);