openzfs/zfs

zfs holds -r does not work on non-snapshot datasets

Open

#9.822 geöffnet am 8. Jan. 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (1.703 Forks)batch import
Type: Defectgood first issue

Repository-Metriken

Stars
 (9.908 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 21h) (62 gemergte PRs in 30 T)

Beschreibung

System information

Type Version/Name
Distribution Name Arch Linux
Distribution Version rolling
Linux Kernel 5.4.6
Architecture x86_64
ZFS Version 0.8.2-1
SPL Version 0.8.2-1

Describe the problem you're observing

If trying to list all of the holds on all of the snapshots on a dataset, I would expect zfs holds -r [dataset] to list, per snapshot, all of the holds. On FreeBSD 12.1 this works as expected. However, on ZFS on Linux it just says "not a snapshot" and lists nothing.

Describe how to reproduce the problem

  • Create a snapshot on a dataset
  • Create a hold on that snapshot
  • Run zfs holds -r [dataset]@[snapshot] and observe the hold
  • Run zfs holds -r [dataset] and observe the error

Include any warning/errors/backtraces from the system logs

N/A

Contributor Guide