Replace useless pyzfs with TrueNAS's py-libzfs

But it's not on pypi :(
This commit is contained in:
Darryl Nixon 2023-07-16 09:44:55 -07:00
parent bcc9c70322
commit 176820cd81
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,7 @@
from collections.abc import Generator
from pathlib import Path
import pyzfs
import libzfs
class ZFSHandler:
@ -12,7 +12,7 @@ class ZFSHandler:
path = path.resolve().absolute()
inode = path.stat().st_ino
zfs = pyzfs.ZFS()
zfs = libzfs.ZFS()
dataset = zfs.get_dataset_by_path(str(path))
if dataset is not None:
pool = dataset.pool

View file

@ -14,7 +14,6 @@ dependencies = [
"loguru==0.7.0",
"aiofiles==23.1.0",
"uvloop==0.17.0",
"pyzfs==0.2.3",
"asyncstdlib==3.10.8",
"psutil==5.9.5",
]