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