Skip to content

Commit

Permalink
Update the dataset name in handle after zfs_rename
Browse files Browse the repository at this point in the history
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
  • Loading branch information
usaleem-ix committed Feb 7, 2025
1 parent 2cccbac commit 7ab7602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libzfs/libzfs_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -4673,6 +4673,7 @@ zfs_rename(zfs_handle_t *zhp, const char *target, renameflags_t flags)
changelist_rename(cl, zfs_get_name(zhp), target);
ret = changelist_postfix(cl);
}
(void) strlcpy(zhp->zfs_name, target, sizeof (zhp->zfs_name));
}

error:
Expand Down

0 comments on commit 7ab7602

Please sign in to comment.