Skip to content
  • Sage Weil's avatar
    Btrfs: add SNAP_CREATE_ASYNC ioctl · 72fd032e
    Sage Weil authored
    
    
    Create a snap without waiting for it to commit to disk.  The ioctl is
    ordered such that subsequent operations will not be contained by the
    created snapshot, and the commit is initiated, but the ioctl does not
    wait for the snapshot to commit to disk.
    
    We return the specific transid to userspace so that an application can wait
    for this specific snapshot creation to commit via the WAIT_SYNC ioctl.
    
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    72fd032e