| 2774 | } |
| 2775 | |
| 2776 | static void |
| 2777 | valid_options (const struct cp_options *co) |
| 2778 | { |
| 2779 | affirm (VALID_BACKUP_TYPE (co->backup_type)); |
| 2780 | affirm (VALID_SPARSE_MODE (co->sparse_mode)); |
| 2781 | affirm (VALID_REFLINK_MODE (co->reflink_mode)); |
| 2782 | affirm (!(co->hard_link && co->symbolic_link)); |
| 2783 | affirm (! |
| 2784 | (co->reflink_mode == REFLINK_ALWAYS |
| 2785 | && co->sparse_mode != SPARSE_AUTO)); |
| 2786 | } |
| 2787 | |
| 2788 | /* Copy the file SRC_NAME to the file DST_NAME aka DST_DIRFD+DST_RELNAME. |
| 2789 | If NONEXISTENT_DST is positive, DST_NAME does not exist even as a |