mirror of
https://github.com/DarrylNixon/melamine.git
synced 2024-04-22 06:27:20 -07:00
Replace useless pyzfs with TrueNAS's py-libzfs
But it's not on pypi :(
This commit is contained in:
parent
bcc9c70322
commit
176820cd81
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue