#NEWLINE# def clone_to( self , parent , volume ) : #NEWLINE# #INDENT# parent_filesystem = self . get ( parent ) #NEWLINE# new_filesystem = self . get ( volume ) #NEWLINE# zfs_snapshots = ZFSSnapshots ( self . _reactor , parent_filesystem ) #NEWLINE# snapshot_name = bytes ( uuid4 ( ) ) #NEWLINE# d = zfs_snapshots . create ( snapshot_name ) #NEWLINE# clone_command = [ b'clone' , ( b'%s@%s' % ( parent_filesystem . name , snapshot_name ) ) , new_filesystem . name ] #NEWLINE# d . addCallback ( ( lambda _ : zfs_command ( self . _reactor , clone_command ) ) ) #NEWLINE# self . _created ( d , volume ) #NEWLINE# d . addCallback ( ( lambda _ : new_filesystem ) ) #NEWLINE# return d