Re: ZFS rename with associated snapshot present: odd error message

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 5 May 2021 12:47:35 +0300
On 05/05/2021 01:59, Mark Millard via freebsd-current wrote:
> I had a:
> 
> # zfs list -tall
> NAME                                       USED  AVAIL     REFER  MOUNTPOINT
> . . .
> zroot/DESTDIRs/13_0R-CA72-instwrld-norm              1.44G   117G       96K  /usr/obj/DESTDIRs/13_0R-CA72-instwrld-norm
> zroot/DESTDIRs/13_0R-CA72-instwrld-norm_at_dirty-style  1.44G      -     1.44G  -. . .
> . . .
> 
> (copied/pasted from somewhat earlier) and then attempted:
> 
> # zfs rename zroot/DESTDIRs/13_0R-CA72-instwrld-norm zroot/DESTDIRs/13_0R-CA72-instwrld-alt-0
> cannot open 'zroot/DESTDIRs/13_0R-CA72-instwrld-norm_at_dirty-style': snapshot delimiter '_at_' is not expected here
> 
> Despite the "cannot open" message, the result looks like:
> 
> # zfs list -tall
> NAME                                                       USED  AVAIL     REFER  MOUNTPOINT
> . . .
> zroot/DESTDIRs/13_0R-CA72-instwrld-alt-0                  1.44G   114G       96K  /usr/obj/DESTDIRs/13_0R-CA72-instwrld-alt-0
> zroot/DESTDIRs/13_0R-CA72-instwrld-alt-0_at_dirty-style      1.44G      -     1.44G  -
> . . .
> 
> Still, it leaves me wondering if everything is okay
> given that internal attempt to use the old name with
> _at_dirty-style when it was apparently no longer
> available under that naming.
> 
> For reference:
> 
> # uname -apKU
> FreeBSD CA72_4c8G_ZFS 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261ff-dirty: Thu Apr 29 21:53:20 PDT 2021     root_at_CA72_4c8G_ZFS:/usr/obj/BUILDs/13_0R-CA72-nodbg-clang/usr/13_0R-src/arm64.aarch64/sys/GENERIC-NODBG-CA72  arm64 aarch64 1300139 1300139

Cannot reproduce here (but with much simpler names and on stable/13):
zfs create testz/test
zfs snapshot testz/test_at_snap1
zfs rename testz/test testz/test2

All worked.

-- 
Andriy Gapon
Received on Wed May 05 2021 - 07:47:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:28 UTC