Doing libzfs the hard way, but it works

This commit is contained in:
Darryl Nixon 2023-07-16 10:23:03 -07:00
parent 176820cd81
commit 9534c30bd7
4 changed files with 21 additions and 9 deletions

View file

@ -39,7 +39,7 @@ class ext2_inode_large_p(ctypes.POINTER(ext2_inode_large)):
class EXT23Handler:
def __init__(self, fs: str) -> None:
def __init__(self) -> None:
self.fs = "ext2/ext3"
self.libext2fs = ctypes.CDLL("libext2fs.so.2")
self.libext2fs.ext2fs_open.restype = ctypes.c_int