• S
    Btrfs: add SNAP_CREATE_ASYNC ioctl · 72fd032e
    Sage Weil 提交于
    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: NSage Weil <sage@newdream.net>
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    72fd032e
ioctl.c 52.0 KB