diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/btrfs.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index fa3a5f9338fc..5e39e859a848 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h | |||
@@ -412,7 +412,25 @@ struct btrfs_ioctl_received_subvol_args { | |||
412 | * search of clone sources doesn't find an extent. UPDATE_EXTENT | 412 | * search of clone sources doesn't find an extent. UPDATE_EXTENT |
413 | * commands will be sent instead of WRITE commands. | 413 | * commands will be sent instead of WRITE commands. |
414 | */ | 414 | */ |
415 | #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 | 415 | #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 |
416 | |||
417 | /* | ||
418 | * Do not add the leading stream header. Used when multiple snapshots | ||
419 | * are sent back to back. | ||
420 | */ | ||
421 | #define BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2 | ||
422 | |||
423 | /* | ||
424 | * Omit the command at the end of the stream that indicated the end | ||
425 | * of the stream. This option is used when multiple snapshots are | ||
426 | * sent back to back. | ||
427 | */ | ||
428 | #define BTRFS_SEND_FLAG_OMIT_END_CMD 0x4 | ||
429 | |||
430 | #define BTRFS_SEND_FLAG_MASK \ | ||
431 | (BTRFS_SEND_FLAG_NO_FILE_DATA | \ | ||
432 | BTRFS_SEND_FLAG_OMIT_STREAM_HEADER | \ | ||
433 | BTRFS_SEND_FLAG_OMIT_END_CMD) | ||
416 | 434 | ||
417 | struct btrfs_ioctl_send_args { | 435 | struct btrfs_ioctl_send_args { |
418 | __s64 send_fd; /* in */ | 436 | __s64 send_fd; /* in */ |