Project

General

Profile

Actions

Feature #2745

open

Allow filtering of properties on zfs receive

Added by Jakob Borg about 10 years ago. Updated about 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2012-05-17
Due date:
% Done:

0%

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

Description

It's very useful to prevent certain properties from being received when doing a `zfs receive`. In Oracle Solaris, this is implemented with the `-x` switch to `zfs receive`:

         -x property

             Ensures that the effective value  of  the  specified
             property  after  the  receive  is  unaffected by the
             value of that property in the send stream (if  any),
             as  if  the property had been excluded from the send
             stream. If the specified property is not present  in
             the  send  stream,  this  option  does nothing. If a
             received property needs to be overridden, the effec-
             tive value can be set or inherited, depending on the
             property. In the case of an incremental  update,  -x
             leaves any existing local setting or explicit inher-
             itance unchanged (since  the  received  property  is
             already   overridden).  All  -o  restrictions  apply
             equally to -x.

The "-o restrictions" mentioned are:

             Set-once  properties  bound  to  the
             received data, such as normalization and  casesensi-
             tivity,  cannot be set at receive time even when the
             datasets are newly created by zfs receive.  Multiple
             -o options can be specified. An error results if the
             same property is specified  in  multiple  -o  or  -x
             options.


Related issues

Has duplicate illumos gate - Feature #3753: Add zfs receive property support (zfs recv -o)NewPrasad Joshi2013-04-28

Actions
Actions

Also available in: Atom PDF