Skip to content

Commit

Permalink
Ignore fast_dedup feature
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Sep 5, 2024
1 parent d8cf036 commit e9768db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libzfs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import errno as py_errno
import urllib.parse

GLOBAL_CONTEXT_LOCK = threading.Lock()
IGNORED_FEATURES = {'fast_dedup'}
logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -1540,6 +1541,10 @@ cdef class ZFS(object):
opts = opts.copy()
for i in range(0, zfs.SPA_FEATURES):
feat = &zfs.spa_feature_table[i]

if feat.fi_uname in IGNORED_FEATURES:
continue

opts['feature@{}'.format(feat.fi_uname)] = 'enabled'

copts = NVList(otherdict=opts)
Expand Down Expand Up @@ -3151,6 +3156,10 @@ cdef class ZFSPool(object):

for i in range(0, zfs.SPA_FEATURES):
feat = &zfs.spa_feature_table[i]

if i.fi_uname in IGNORED_FEATURES:
continue

f = ZPoolFeature.__new__(ZPoolFeature)
f.feature = feat
f.pool = self
Expand Down

0 comments on commit e9768db

Please sign in to comment.