Bug #2635
closed'zfs rename -f' to perform force unmount
0%
Description
Currently, ZFS needs to unmount filesystems when performing a rename operation. This is always done as a normal unmount (sans F_FORCE), which is very annoying when you have scripts that need to be reliable in the presence of arbitrary transient holds on the system. We should add a '-f' flag to 'zfs rename' that will always force unmount filesystems.
Updated by Eric Schrock over 11 years ago
- Status changed from New to Resolved
changeset: 13677:a0cbef703c12
tag: tip
user: Eric Schrock <Eric.Schrock@delphix.com>
date: Fri Apr 27 11:14:46 2012 -0700
description:
2635 'zfs rename -f' to perform force unmount
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: George Wilson <George.Wilson@delphix.com>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
modified:
usr/src/cmd/zfs/zfs_main.c
usr/src/cmd/zoneadm/zfs.c
usr/src/lib/libbe/common/be_rename.c
usr/src/lib/libzfs/common/libzfs.h
usr/src/lib/libzfs/common/libzfs_dataset.c
usr/src/man/man1m/zfs.1m