diff options
Diffstat (limited to 'include/uapi/linux/btrfs.h')
-rw-r--r-- | include/uapi/linux/btrfs.h | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index fa3a5f9338fc..5ef0df545a2a 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h | |||
@@ -376,12 +376,18 @@ struct btrfs_ioctl_get_dev_stats { | |||
376 | 376 | ||
377 | #define BTRFS_QUOTA_CTL_ENABLE 1 | 377 | #define BTRFS_QUOTA_CTL_ENABLE 1 |
378 | #define BTRFS_QUOTA_CTL_DISABLE 2 | 378 | #define BTRFS_QUOTA_CTL_DISABLE 2 |
379 | #define BTRFS_QUOTA_CTL_RESCAN 3 | 379 | #define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 |
380 | struct btrfs_ioctl_quota_ctl_args { | 380 | struct btrfs_ioctl_quota_ctl_args { |
381 | __u64 cmd; | 381 | __u64 cmd; |
382 | __u64 status; | 382 | __u64 status; |
383 | }; | 383 | }; |
384 | 384 | ||
385 | struct btrfs_ioctl_quota_rescan_args { | ||
386 | __u64 flags; | ||
387 | __u64 progress; | ||
388 | __u64 reserved[6]; | ||
389 | }; | ||
390 | |||
385 | struct btrfs_ioctl_qgroup_assign_args { | 391 | struct btrfs_ioctl_qgroup_assign_args { |
386 | __u64 assign; | 392 | __u64 assign; |
387 | __u64 src; | 393 | __u64 src; |
@@ -412,7 +418,25 @@ struct btrfs_ioctl_received_subvol_args { | |||
412 | * search of clone sources doesn't find an extent. UPDATE_EXTENT | 418 | * search of clone sources doesn't find an extent. UPDATE_EXTENT |
413 | * commands will be sent instead of WRITE commands. | 419 | * commands will be sent instead of WRITE commands. |
414 | */ | 420 | */ |
415 | #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 | 421 | #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 |
422 | |||
423 | /* | ||
424 | * Do not add the leading stream header. Used when multiple snapshots | ||
425 | * are sent back to back. | ||
426 | */ | ||
427 | #define BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2 | ||
428 | |||
429 | /* | ||
430 | * Omit the command at the end of the stream that indicated the end | ||
431 | * of the stream. This option is used when multiple snapshots are | ||
432 | * sent back to back. | ||
433 | */ | ||
434 | #define BTRFS_SEND_FLAG_OMIT_END_CMD 0x4 | ||
435 | |||
436 | #define BTRFS_SEND_FLAG_MASK \ | ||
437 | (BTRFS_SEND_FLAG_NO_FILE_DATA | \ | ||
438 | BTRFS_SEND_FLAG_OMIT_STREAM_HEADER | \ | ||
439 | BTRFS_SEND_FLAG_OMIT_END_CMD) | ||
416 | 440 | ||
417 | struct btrfs_ioctl_send_args { | 441 | struct btrfs_ioctl_send_args { |
418 | __s64 send_fd; /* in */ | 442 | __s64 send_fd; /* in */ |
@@ -502,6 +526,10 @@ struct btrfs_ioctl_send_args { | |||
502 | struct btrfs_ioctl_qgroup_create_args) | 526 | struct btrfs_ioctl_qgroup_create_args) |
503 | #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ | 527 | #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ |
504 | struct btrfs_ioctl_qgroup_limit_args) | 528 | struct btrfs_ioctl_qgroup_limit_args) |
529 | #define BTRFS_IOC_QUOTA_RESCAN _IOW(BTRFS_IOCTL_MAGIC, 44, \ | ||
530 | struct btrfs_ioctl_quota_rescan_args) | ||
531 | #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ | ||
532 | struct btrfs_ioctl_quota_rescan_args) | ||
505 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ | 533 | #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ |
506 | char[BTRFS_LABEL_SIZE]) | 534 | char[BTRFS_LABEL_SIZE]) |
507 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ | 535 | #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ |