List the recently modified files in a subvolume

    name
        Name of the subvolume

    last_gen
        Last transid marker from where to compare

    CLI Example:

    .. code-block:: bash

        salt '*' btrfs.subvolume_find_new /var/volumes/tmp 1024

def subvolume_find_new(name, last_gen):
    '''
    List the recently modified files in a subvolume

    name
        Name of the subvolume

    last_gen
        Last transid marker from where to compare

    CLI Example:

    .. code-block:: bash

        salt '*' btrfs.subvolume_find_new /var/volumes/tmp 1024

    '''
    cmd = ['btrfs', 'subvolume', 'find-new', name, last_gen]

    res = __salt__['cmd.run_all'](cmd)
    salt.utils.fsutils._verify_run(res)

    lines = res['stdout'].splitlines()
    # Filenames are at the end of each inode line
    files = [l.split()[-1] for l in lines if l.startswith('inode')]
    # The last transid is in the last line
    transid = lines[-1].split()[-1]
    return {
        'files': files,
        'transid': transid,
    }