• Stefan Behrens's avatar
    Btrfs: set UUID in root_item for created trees · 6463fe58
    Stefan Behrens authored
    It is a rare exception that a new tree is created, like the qgroups
    tree. So far these new trees have an all-zero UUID in their root
    items. All trees that mkfs.btrfs has created get an UUID during the
    first mount when btrfs_read_root_item() rewrites the root_item to
    the v2 structure style. These UUID are never used so far, but
    anyway, since it is better to have it uniform for all trees, this
    commit adds some lines that generate and write an UUID for newly
    created trees.
    Signed-off-by: default avatarStefan Behrens <sbehrens@giantdisaster.de>
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    6463fe58
disk-io.c 107 KB