#NEWLINE# def execute( self , ns , device , size = None , _extended = None , _logical = None ) : #NEWLINE# #INDENT# "\n        Implementation of 'partition create' command.\n        " #NEWLINE# device = str2device ( ns , device ) #NEWLINE# if size : #NEWLINE# #INDENT# size = str2size ( size ) #NEWLINE# #UNINDENT# ptype = None #NEWLINE# if _extended : #NEWLINE# #INDENT# ptype = partition . PARTITION_TYPE_EXTENDED #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if _logical : #NEWLINE# #INDENT# ptype = partition . PARTITION_TYPE_LOGICAL #NEWLINE# #UNINDENT# #UNINDENT# partition . create_partition ( size , device , size , ptype )