• Chris Mason's avatar
    Btrfs: Add backrefs and forward refs for subvols and snapshots · 0660b5af
    Chris Mason authored
    Subvols and snapshots can now be referenced from any point in the directory
    tree.  We need to maintain back refs for them so we can find lost
    Forward refs are added so that we know all of the subvols and
    snapshots referenced anywhere in the directory tree of a single subvol.  This
    can be used to do recursive snapshotting (but they aren't yet) and it is
    also used to detect and prevent directory loops when creating new snapshots.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>