HomeFreeBSD

Refactor parent dataset handling in libzfs zfs_rename()

Description

Refactor parent dataset handling in libzfs zfs_rename()

For recursive renaming, simplify the code by moving zhrp and
parentname to inner scope. zhrp is only used to test existence
of a parent dataset for recursive dataset dir scan since ba6a24026c.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8815

Details

Provenance
kusumi.tomohiro_gmail.comAuthored on May 28 2019, 10:31 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 28 2019, 10:31 PM
Parents
rGab1a9705f802: Double-free of encryption wrapping key due to invalid pool properties
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5691b86ce5e2: Refactor parent dataset handling in libzfs zfs_rename() (authored by Tomohiro Kusumi <kusumi.tomohiro@gmail.com>).May 28 2019, 10:31 PM