soooo...
turns out ALL of the disk operations can be performed with gobject-introspection. BUT it's unlikely that that'll be available everywhere, or that the Arch Linux releng team would include it, etc. So we have fallbacks to mimic it. BUT please try to use gobject-introspection with libblockdev, because it's going to be a lot faster and a lot less error-prone.
This commit is contained in:
9
aif/disk/_common.py
Normal file
9
aif/disk/_common.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import gi
|
||||
gi.require_version('BlockDev', '2.0')
|
||||
from gi.repository import BlockDev, GLib
|
||||
|
||||
ps = BlockDev.PluginSpec()
|
||||
ps.name = BlockDev.Plugin.LVM
|
||||
ps.so_name = "libbd_lvm.so"
|
||||
|
||||
BlockDev.init([ps])
|
||||
Reference in New Issue
Block a user