Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer org.openzfs for features and properties #10003

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

rlaager
Copy link
Member

@rlaager rlaager commented Feb 13, 2020

Motivation and Context

Moving forward, we wish to use org.openzfs (no dash) rather than org.open-zfs or org.zfsonlinux for feature GUIDs and property names.

We want to avoid the dash for property names, as it is easier to type without the dash. Then, we might as well be consistent in feature names. The website's "main" name is still open-zfs.org and openzfs.org is a redirect, though I have proposed swapping those around. (This situation occurred because openzfs.org was not originally available.)

The ZFS-on-Linux branding is being minimized (though not completely eliminated), so it makes sense to discourage that in these contexts too.

Description

I changed as many existing instances as possible to use the new naming style.

The existing feature GUIDs cannot be changed. I added comments to each in man/man5/zpool-features.5 and module/zcommon/zfeature_common.c to try to alert people who are looking at those as a precedent. I'm open to other ideas here.

How Has This Been Tested?

I looked at zpool-features.5 with man to make sure the comments were not visible.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • All commit messages are properly formatted and contain Signed-off-by.

@rlaager rlaager requested a review from behlendorf February 13, 2020 23:50
@behlendorf behlendorf added Status: Code Review Needed Ready for review and testing Type: Documentation Indicates a requested change to the documentation labels Feb 13, 2020
@codecov
Copy link

codecov bot commented Feb 14, 2020

Codecov Report

Merging #10003 into master will increase coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #10003    +/-   ##
========================================
+ Coverage      79%      79%   +<1%     
========================================
  Files         386      386            
  Lines      122431   122431            
========================================
+ Hits        97023    97069    +46     
+ Misses      25408    25362    -46
Flag Coverage Δ
#kernel 79% <ø> (ø) ⬆️
#user 67% <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecbbdac...9ac4521. Read the comment docs.

@@ -381,6 +381,7 @@ zpool_feature_init(void)
SPA_FEATURE_EXTENSIBLE_DATASET,
SPA_FEATURE_NONE
};
/* NOTE: Use org.openzfs (without the dash) for new feature GUIDs. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if instead of annotating each one of these instances of org.zfsonlinux we added a comment above the zpool_feature_init() function which briefly summarized the policy. Here's a first attempt, which could still use a bit more editing.

/*
 * Each feature is prefixed by a reversed domain name so that it can be
 * uniquely identified.  This has allowed companies to independently develop
 * features without first reserving the feature name with the OpenZFS
 * project (org.delphix, org.datto).  Similarly, features developed on one
 * platform have used the platform's domain name (org.zfsonlinux, org.illumos).
 * Use of the "org.openzfs" domain is recommended for new features which
 * are developed by the community.  The domain may optionally be used by
 * companies or platforms provided they reserve the feature name in
 * advance with the OpenZFS project developers.
 */

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent some time editing on this. In the course of doing so, I came to the conclusion that where/when the features are going to be released is a significant factor. If a company (like Delphix or Datto) wants to be able to release their feature before it lands in OpenZFS, then they should use their own domain name. If they use the OpenZFS domain name, then the on-disk format for that feature is already committed, which ties the hands of the OpenZFS project. It seems that the OpenZFS domain should only be used when the code is going to be initially released through an OpenZFS platform.

The first sentence is from the man page. The rest is from what you wrote, with edits from me.

/*
 * Every feature has a GUID of the form com.example:feature_name.  The
 * reversed DNS name ensures that the feature's GUID is unique across all ZFS
 * implementations.  This allows companies to independently develop and
 * release features.  Examples include org.delphix and org.datto.  Previously,
 * features developed on one implementation have used that implementation's
 * domain name (e.g. org.illumos and org.zfsonlinux).  Use of the org.openzfs
 * domain name is recommended for new features which are developed by the
 * OpenZFS community and its platforms.  This domain may optionally be used by
 * companies developing features for initial release through an OpenZFS
 * implementation.  Use of the org.openzfs domain requires reserving the
 * feature name in advance with the OpenZFS project.
 */

@rlaager rlaager force-pushed the features-and-properties branch from 14fe150 to cd894e7 Compare February 15, 2020 23:29
Moving forward, we wish to use org.openzfs (no dash) rather than
org.open-zfs or org.zfsonlinux for feature GUIDs and property names.
The existing feature GUIDs cannot be changed.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
@rlaager rlaager force-pushed the features-and-properties branch from cd894e7 to 9ac4521 Compare February 15, 2020 23:33
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improved comment.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Feb 16, 2020
@behlendorf behlendorf merged commit f244846 into openzfs:master Feb 18, 2020
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
Moving forward, we wish to use org.openzfs (no dash) rather than
org.open-zfs or org.zfsonlinux for feature GUIDs and property names.
The existing feature GUIDs cannot be changed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes openzfs#10003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested) Type: Documentation Indicates a requested change to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants