Project

General

Profile

Actions

Bug #3901

open

incorrect behaviour of zfs receive -F

Added by Michael Keller almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2013-07-20
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

zfs receive -F does not respect the destinations canmount properties if it has to destroy/rollback some destinations child datasets.

in this case a second "plain" zfs receive WILL always fail if the source datasets ARE mounted.

it looks like that zfs receive -F will mount datasets (even if their canmount is inherited to off) before it destroys them.

see the attached file for a test script and result matrix. the result matrix was taken on oi151a. but the test script seems to behave the same on omnios-33fdde4 .

zfs receive -F should always behave the same, regardless if it has to destroy/rollback datasets. it also should respect the actual (inherited) canmount settings.


Files

test.sh (3.39 KB) test.sh Michael Keller, 2013-07-20 10:48 PM
Actions #1

Updated by Prasad Joshi almost 9 years ago

  • Assignee set to Prasad Joshi
Actions

Also available in: Atom PDF