Skip to content
  • Christoph Hellwig's avatar
    Btrfs: Fix subvolume creation locking rules · cb8e7090
    Christoph Hellwig authored
    
    
    Creating a subvolume is in many ways like a normal VFS ->mkdir, and we
    really need to play with the VFS topology locking rules.  So instead of
    just creating the snapshot on disk and then later getting rid of
    confliting aliases do it correctly from the start.  This will become
    especially important once we allow for subvolumes anywhere in the tree,
    and not just below a hidden root.
    
    Note that snapshots will need the same treatment, but do to the delay
    in creating them we can't do it currently.  Chris promised to fix that
    issue, so I'll wait on that.
    
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    
    cb8e7090