zfs rename <snapshot> need not involve libshare
As is well known, libshare is extremely slow. We should avoid
using it whenever possible. When renaming a snapshot, there is no need to
unshare anything, so we should not involve libshare.
Note: this only applies to renaming snapshots that have clones -- it's the
clone that we are (unnecessarily) unmounting and then remounting.
Updated by Electric Monk over 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 33cde0d0c27645bc9ec94c4d2955193c3dd4027c Author: Matthew Ahrens <email@example.com> Date: 2014-07-08T04:12:40.000Z 4953 zfs rename <snapshot> need not involve libshare 4954 "zfs create" need not involve libshare if we are not sharing 4955 libshare's get_zfs_dataset need not sort the datasets Reviewed by: George Wilson <firstname.lastname@example.org> Reviewed by: Sebastien Roy <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Gordon Ross <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>