From 3ed8bc68d46ba1b7ea0ea7ede60b711c13c8f3e3 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Wed, 1 Nov 2023 09:31:24 +0800 Subject: [PATCH] Add a comment explaining zprop names Signed-off-by: Andrew Innes --- module/zcommon/zfs_prop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c index 0b5789f7e5f2..824edd1b3108 100644 --- a/module/zcommon/zfs_prop.c +++ b/module/zcommon/zfs_prop.c @@ -625,7 +625,10 @@ zfs_prop_init(void) ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "[,...]", "RSNAPS", sfeatures); - /* __APPLE__ */ + /* + * These props are needed for compatability with pools created + * using openzfsonosx + */ zprop_register_index(ZFS_PROP_BROWSE, "com.apple.browse", 1, PROP_INHERIT, ZFS_TYPE_FILESYSTEM, "on | off", "COM.APPLE.BROWSE", boolean_table, sfeatures); @@ -641,7 +644,6 @@ zfs_prop_init(void) zprop_register_index(ZFS_PROP_DEVDISK, "com.apple.devdisk", 0, PROP_INHERIT, ZFS_TYPE_FILESYSTEM, "poolonly | on | off", "COM.APPLE.DEVDISK", devdisk_table, sfeatures); - /* __APPLE__ */ /* readonly number properties */ zprop_register_number(ZFS_PROP_USED, "used", 0, PROP_READONLY,