#NEWLINE# @ classmethod #NEWLINE# def _create_volume_service( cls , stderr , reactor , options ) : #NEWLINE# #INDENT# '\n        Create a ``VolumeService`` for the given arguments.\n\n        :return: The started ``VolumeService``.\n        ' #NEWLINE# pool = StoragePool ( reactor , options [ 'pool' ] , FilePath ( options [ 'mountpoint' ] ) ) #NEWLINE# service = cls . _service_factory ( config_path = options [ 'config' ] , pool = pool , reactor = reactor ) #NEWLINE# try : #NEWLINE# #INDENT# service . startService ( ) #NEWLINE# #UNINDENT# except CreateConfigurationError as e : #NEWLINE# #INDENT# stderr . write ( ( b'Writing config file %s failed: %s\n' % ( options [ 'config' ] . path , e ) ) ) #NEWLINE# raise SystemExit ( 1 ) #NEWLINE# #UNINDENT# return service