def _defragment_mountpoint(mountpoint):
 out = __salt__['cmd.run_all']('btrfs filesystem defragment -f {0}'.format(mountpoint))
 return {'mount_point': mountpoint, 'passed': (not out['stderr']), 'log': (out['stderr'] or False), 'range': False}

def _defragment_mountpoint ( mountpoint ) : out = __salt__ [ 'cmd.run_all' ] ( 'btrfs filesystem defragment -f {0}' . format ( mountpoint ) ) return { 'mount_point' : mountpoint , 'passed' : ( not out [ 'stderr' ] ) , 'log' : ( out [ 'stderr' ] or False ) , 'range' : False }
defragment only one btrfs mountpoint .