Check if the subvolume is copy on write

def _is_cow(path):
    '''
    Check if the subvolume is copy on write
    '''
    dirname = os.path.dirname(path)
    return 'C' not in __salt__['file.lsattr'](dirname)[path]