Skip to content

Commit

Permalink
Add a comment explaining zprop names
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Innes <[email protected]>
  • Loading branch information
andrewc12 committed Nov 1, 2023
1 parent f4af83e commit 3ed8bc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/zcommon/zfs_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,10 @@ zfs_prop_init(void)
ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "<snapshot>[,...]",
"RSNAPS", sfeatures);

/* __APPLE__ */
/*
* These props are needed for compatability with pools created
* using openzfsonosx

Check failure on line 630 in module/zcommon/zfs_prop.c

View workflow job for this annotation

GitHub Actions / checkstyle

space or tab at end of line
*/
zprop_register_index(ZFS_PROP_BROWSE, "com.apple.browse", 1,
PROP_INHERIT, ZFS_TYPE_FILESYSTEM, "on | off",
"COM.APPLE.BROWSE", boolean_table, sfeatures);
Expand All @@ -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,
Expand Down

0 comments on commit 3ed8bc6

Please sign in to comment.