Skip to content

Commit b5a7243

Browse files
committed
disable ZFS mnttab_cache
1 parent 2906aa4 commit b5a7243

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis/mypy-stubs/libzfs.pyi

+6-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ class ZFS:
7777
pools: Generator[ZFSPool, None, None] = ...
7878
snapshots: Generator[ZFSSnapshot, None, None] = ...
7979
__pyx_vtable__ = ... # type: Any
80-
def __init__(self, history: bool=True, history_prefix: str='') -> None: ...
80+
def __init__(
81+
self,
82+
history: bool=True,
83+
history_prefix: str='',
84+
mnttab_cache: bool=True
85+
) -> None: ...
8186
def create(
8287
self,
8388
name: str,

libioc/ZFS.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ def get_zfs(
280280
history_prefix: str="<iocage>"
281281
) -> ZFS:
282282
"""Get an instance of iocages enhanced ZFS class."""
283-
zfs = ZFS(history=history, history_prefix=history_prefix)
283+
zfs = ZFS(
284+
history=history,
285+
history_prefix=history_prefix,
286+
mnttab_cache=False
287+
)
284288
zfs.logger = libioc.helpers_object.init_logger(zfs, logger)
285289
return zfs
286290

0 commit comments

Comments
 (0)