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

zfs.8 uses wrong snapshot names in Example 15 #8241

Merged
merged 1 commit into from Jan 7, 2019

Conversation

bengentil
Copy link
Contributor

Motivation and Context

in Example 15 of zfs.8 manual the snapshot names are wrong:

     Example 15 Performing a Rolling Snapshot
       The following example shows how to maintain a history of snapshots with a consistent naming
       scheme.  To keep a week's worth of snapshots, the user destroys the oldest snapshot, renames
       the remaining snapshots, and then creates a new snapshot, as follows:

       # zfs destroy -r pool/users@7daysago
       # zfs rename -r pool/users@6daysago @7daysago
       # zfs rename -r pool/users@5daysago @6daysago
       # zfs rename -r pool/users@yesterday @5daysago    <<<<
       # zfs rename -r pool/users@yesterday @4daysago    <<<<
       # zfs rename -r pool/users@yesterday @3daysago    <<<<
       # zfs rename -r pool/users@yesterday @2daysago
       # zfs rename -r pool/users@today @yesterday
       # zfs snapshot -r pool/users@today

Description

It should be

       # zfs rename -r pool/users@4daysago @5daysago
       # zfs rename -r pool/users@3daysago @4daysago
       # zfs rename -r pool/users@2daysago @3daysago

It's already fixed on FreeBSD: https://svnweb.freebsd.org/base/head/cddl/contrib/opensolaris/cmd/zfs/zfs.8?r1=239217&r2=239216&pathrev=239217
and a similar fix has been proposed to illumos https://www.illumos.org/issues/9623.

How Has This Been Tested?

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:

Signed-off-by: Benjamin Gentil <benjamin@gentil.io>
@bunder2015 bunder2015 added the Type: Documentation Indicates a requested change to the documentation label Jan 6, 2019
Copy link
Contributor

@bunder2015 bunder2015 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this.

@codecov
Copy link

codecov bot commented Jan 6, 2019

Codecov Report

Merging #8241 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8241      +/-   ##
==========================================
+ Coverage   78.57%    78.6%   +0.03%     
==========================================
  Files         379      379              
  Lines      114924   114924              
==========================================
+ Hits        90299    90338      +39     
+ Misses      24625    24586      -39
Flag Coverage Δ
#kernel 78.94% <ø> (-0.04%) ⬇️
#user 67.42% <ø> (+0.03%) ⬆️

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 0b8e441...76dabbb. Read the comment docs.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Jan 6, 2019
@behlendorf behlendorf merged commit 22448f0 into openzfs:master Jan 7, 2019
@tonyhutter tonyhutter added this to To do in 0.7.13 Jan 17, 2019
@tonyhutter tonyhutter moved this from To do to In progress in 0.7.13 Jan 28, 2019
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 30, 2019
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: Benjamin Gentil <benjamin@gentil.io>
Closes openzfs#8241
tonyhutter pushed a commit that referenced this pull request Mar 4, 2019
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: Benjamin Gentil <benjamin@gentil.io>
Closes #8241
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
No open projects
0.7.13
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

4 participants