Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created April 12, 2018 15:43
Show Gist options
  • Save barcharcraz/6f529bae4c26aefde0ac93e31f0b84fc to your computer and use it in GitHub Desktop.
Save barcharcraz/6f529bae4c26aefde0ac93e31f0b84fc to your computer and use it in GitHub Desktop.
1,4c1,19
< #ifndef MY_ABC_HERE
< #define MY_ABC_HERE
< #endif
<
---
> /*
> * Copyright (C) 2012 Alexander Block. All rights reserved.
> * Copyright (C) 2012 STRATO. All rights reserved.
> *
> * This program is free software; you can redistribute it and/or
> * modify it under the terms of the GNU General Public
> * License v2 as published by the Free Software Foundation.
> *
> * This program is distributed in the hope that it will be useful,
> * but WITHOUT ANY WARRANTY; without even the implied warranty of
> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> * General Public License for more details.
> *
> * You should have received a copy of the GNU General Public
> * License along with this program; if not, write to the
> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
> * Boston, MA 021110-1307, USA.
> */
>
10,11c25,26
< #define BTRFS_SEND_BUF_SIZE (1024 * 64)
< #define BTRFS_SEND_READ_SIZE (1024 * 48)
---
> #define BTRFS_SEND_BUF_SIZE SZ_64K
> #define BTRFS_SEND_READ_SIZE (48 * SZ_1K)
30c45
<
---
> /* len excluding the header */
33c48
<
---
> /* crc including the header with zero crc field */
39c54
<
---
> /* len excluding the header */
42a58
> /* commands */
74,76d89
< #ifdef MY_DEF_HERE
< BTRFS_SEND_C_SUBVOL_FLAG,
< #endif
80a94
> /* attributes in send stream */
114,116d127
< #ifdef MY_DEF_HERE
< BTRFS_SEND_A_FLAG,
< #endif
122c133
< long btrfs_ioctl_send(struct file *mnt_file, void __user *arg);
---
> long btrfs_ioctl_send(struct file *mnt_file, struct btrfs_ioctl_send_args *arg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment