refactor: sender -> stream
This commit is contained in:
+2
-2
@@ -261,10 +261,10 @@ class ZFS:
|
|||||||
if old_snap == new_snap:
|
if old_snap == new_snap:
|
||||||
raise ValueError("Cannot send stream, snapshots are identical.")
|
raise ValueError("Cannot send stream, snapshots are identical.")
|
||||||
print(f" {old_snap} -> {new_snap}")
|
print(f" {old_snap} -> {new_snap}")
|
||||||
sender = Popen(
|
stream = Popen(
|
||||||
[config.ZFS, "send", "-R", "-I", str(old_snap), str(new_snap)], stdout=PIPE
|
[config.ZFS, "send", "-R", "-I", str(old_snap), str(new_snap)], stdout=PIPE
|
||||||
)
|
)
|
||||||
return sender
|
return stream
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def receive(stream: Popen[str], pool: Pool):
|
def receive(stream: Popen[str], pool: Pool):
|
||||||
|
|||||||
Reference in New Issue
Block a user