Project

General

Profile

Bug #2635

'zfs rename -f' to perform force unmount

Added by Eric Schrock over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2012-04-18
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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.

History

#1

Updated by Eric Schrock over 7 years ago

  • Status changed from New to Resolved

changeset: 13677:a0cbef703c12
tag: tip
user: Eric Schrock <>
date: Fri Apr 27 11:14:46 2012 -0700

description:
2635 'zfs rename -f' to perform force unmount
Reviewed by: Matt Ahrens <>
Reviewed by: George Wilson <>
Reviewed by: Bill Pijewski <>
Reviewed by: Richard Elling <>
Approved by: Richard Lowe <>

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

Also available in: Atom PDF