#include <linux/bsearch.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/sort.h>
#include <linux/mount.h>
#include <linux/xattr.h>
#include <linux/posix_acl_xattr.h>
#include <linux/radix-tree.h>
#include <linux/crc32c.h>
#include <linux/vmalloc.h>
#include "send.h"
#include "backref.h"
#include "locking.h"
#include "disk-io.h"
#include "btrfs_inode.h"
#include "transaction.h"
Go to the source code of this file.
|
#define | verbose_printk(...) if (g_verbose) printk(__VA_ARGS__) |
|
#define | FS_PATH_INLINE_SIZE (sizeof(struct fs_path) - offsetof(struct fs_path, inline_buf)) |
|
#define | SEND_CTX_MAX_NAME_CACHE_SIZE 128 |
|
#define | SEND_CTX_NAME_CACHE_CLEAN_SIZE (SEND_CTX_MAX_NAME_CACHE_SIZE * 2) |
|
#define | TLV_PUT(sctx, attrtype, attrlen, data) |
|
#define | TLV_PUT_INT(sctx, attrtype, bits, value) |
|
#define | TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) |
|
#define | TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) |
|
#define | TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) |
|
#define | TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) |
|
#define | TLV_PUT_STRING(sctx, attrtype, str, len) |
|
#define | TLV_PUT_PATH(sctx, attrtype, p) |
|
#define | TLV_PUT_UUID(sctx, attrtype, uuid) |
|
#define | TLV_PUT_TIMESPEC(sctx, attrtype, ts) |
|
#define | TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) |
|
|
typedef int(* | iterate_inode_ref_t )(int num, u64 dir, int index, struct fs_path *p, void *ctx) |
|
typedef int(* | iterate_dir_item_t )(int num, struct btrfs_key *di_key, const char *name, int name_len, const char *data, int data_len, u8 type, void *ctx) |
|
#define SEND_CTX_MAX_NAME_CACHE_SIZE 128 |
#define TLV_PUT |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
attrlen, |
|
|
|
data |
|
) |
| |
Value:do { \
ret = tlv_put(sctx, attrtype, attrlen,
data); \
goto tlv_put_failure; \
} while (0)
Definition at line 498 of file send.c.
#define TLV_PUT_BTRFS_TIMESPEC |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
eb, |
|
|
|
ts |
|
) |
| |
Value:do { \
ret = tlv_put_btrfs_timespec(sctx, attrtype,
eb,
ts); \
goto tlv_put_failure; \
} while (0)
Definition at line 541 of file send.c.
#define TLV_PUT_INT |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
bits, |
|
|
|
value |
|
) |
| |
Value:do { \
ret = tlv_put_u##
bits(sctx, attrtype,
value); \
goto tlv_put_failure; \
} while (0)
Definition at line 505 of file send.c.
#define TLV_PUT_PATH |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
p |
|
) |
| |
Value:do { \
ret = tlv_put_string(sctx, attrtype,
p->start, \
goto tlv_put_failure; \
} while(0)
Definition at line 522 of file send.c.
#define TLV_PUT_STRING |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
str, |
|
|
|
len |
|
) |
| |
Value:do { \
ret = tlv_put_string(sctx, attrtype,
str, len); \
goto tlv_put_failure; \
} while (0)
Definition at line 516 of file send.c.
#define TLV_PUT_TIMESPEC |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
ts |
|
) |
| |
Value:do { \
ret = tlv_put_timespec(sctx, attrtype,
ts); \
goto tlv_put_failure; \
} while (0)
Definition at line 535 of file send.c.
#define TLV_PUT_UUID |
( |
|
sctx, |
|
|
|
attrtype, |
|
|
|
uuid |
|
) |
| |
Value:do { \
ret = tlv_put_uuid(sctx, attrtype,
uuid); \
goto tlv_put_failure; \
} while (0)
Definition at line 529 of file send.c.
#define verbose_printk |
( |
|
... | ) |
if (g_verbose) printk(__VA_ARGS__) |
- Enumerator:
inode_state_no_change |
|
inode_state_will_create |
|
inode_state_did_create |
|
inode_state_will_delete |
|
inode_state_did_delete |
|
Definition at line 1431 of file send.c.