Project

General

Profile

Bug #9623

zfs.1m uses wrong snapshot names in Example 15

Added by Georg Kilzer about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Start date:
2018-06-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

Currently the zfs man page lists the following for Example 15:

# 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

While it should obviously be:
# 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@4daysago @5daysago
# zfs rename -r pool/users@3daysago @4daysago
# zfs rename -r pool/users@2daysago @3daysago
# zfs rename -r pool/users@yesterday @2daysago
# zfs rename -r pool/users@today @yesterday
# zfs snapshot -r pool/users@today

Note that this exact same issue was fixed in FreeBSD's r239217 a few years ago, but apparently the fix never found its way back upstream.

History

#2

Updated by Electric Monk 5 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 77bcc8e3af50fa7cd2cf404790d694bc29037859

commit  77bcc8e3af50fa7cd2cf404790d694bc29037859
Author: Benjamin Gentil <benjamin@gentil.io>
Date:   2019-02-10T23:16:15.000Z

    9623 zfs.1m uses wrong snapshot names in Example 15
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF