refs #1101 add ogMcastSendPartition()
parent
6e30bc1bdd
commit
3ca8cb6dfe
|
@ -398,6 +398,21 @@ def ogMcastSyntax (op, sess, file=None, device=None, tool=None, level=None):
|
|||
#@todo: ogIsLocked siempre devuelve 1. crear ticket
|
||||
#*/ ##
|
||||
|
||||
#ogMcastSendPartition (disk, par, SessionMulticastSERVER, tools, compresor)
|
||||
#ogMcastSendPartition (1, 1, '9000:full-duplex:239.194.37.31:50M:20:2', 'partclone', 'lzop')
|
||||
def ogMcastSendPartition (disk, par, sess, tool, compressor):
|
||||
PART = DiskLib.ogDiskToDev (disk, par)
|
||||
if not PART: return
|
||||
|
||||
FileSystemLib.ogUnmount (disk, par)
|
||||
cmd = ogMcastSyntax ('SENDPARTITION', sess, PART, tool, compressor)
|
||||
if not cmd: return None
|
||||
print (f'cmd ({cmd})')
|
||||
try:
|
||||
subprocess.run (cmd, shell=True, check=True)
|
||||
except subprocess.CalledProcessError:
|
||||
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_MCASTSENDPARTITION, ' ')
|
||||
return None
|
||||
|
||||
#/**
|
||||
# ogMcastReceiverPartition
|
||||
|
|
Loading…
Reference in New Issue