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 about 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 33cde0d0c27645bc9ec94c4d2955193c3dd4027c Author: Matthew Ahrens <firstname.lastname@example.org> 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 <email@example.com> Reviewed by: Sebastien Roy <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Reviewed by: Gordon Ross <firstname.lastname@example.org> Approved by: Garrett D'Amore <email@example.com>