#NEWLINE# @ vm_util . Retry ( ) #NEWLINE# def FormatDisk( self , device_path ) : #NEWLINE# #INDENT# 'Formats a disk attached to the VM.' #NEWLINE# fmt_cmd = ( '[[ -d /mnt ]] && sudo umount /mnt; sudo mke2fs -F -E lazy_itable_init=0,discard -O ^has_journal -t ext4 -b 4096 %s' % device_path ) #NEWLINE# self . RemoteHostCommand ( fmt_cmd )