diff options
author | Matthew Macy <[email protected]> | 2020-01-21 15:06:10 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-01-21 15:06:10 -0800 |
commit | 5206b8228e17a2505c7a1af071135c753cc82d75 (patch) | |
tree | 0d5d599868aff5128dfd865354c5d334fb55c63d /lib | |
parent | af26a8695847bd6edffc750c3a5d26b430b4704e (diff) |
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 <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9862
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzfs/libzfs_dataset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index b5600ca62..48d656323 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); |