def resize2fs(device):
 cmd = 'resize2fs {0}'.format(device)
 try:
  out = __salt__['cmd.run_all'](cmd, python_shell=False)
 except subprocess.CalledProcessError as err:
  return False
 if (out['retcode'] == 0):
  return True

def resize2fs ( device ) : cmd = 'resize2fs {0}' . format ( device ) try : out = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) except subprocess . CalledProcessError as err : return False if ( out [ 'retcode' ] == 0 ) : return True
resizes the filesystem .