summaryrefslogtreecommitdiff
path: root/send-dump.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-09-07 08:29:33 +0800
committerDavid Sterba <dsterba@suse.com>2016-12-14 15:06:34 +0100
commitfad531e5233343e34f517e46050d860b6225dae0 (patch)
tree6104e0087f78abe8019fb11b9150f32da402e335 /send-dump.h
parent4e2275bd27bb20cdd9bb43f65e8f770c891f5280 (diff)
btrfs-progs: introduce new send-dump object
Introduce send-dump.[ch] which implements a new btrfs_send_ops to exam and output all operations inside a send stream. It has a better output format than the old and no longer compilable send-test tool, but still tries to be script friendly. Provides the basis for later "inspect-internal dump-send" command. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> [ drop escaping call from __print_dump for now, drop gcc warning tweaks, replace empty format strings with NULL ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-dump.h')
-rw-r--r--send-dump.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/send-dump.h b/send-dump.h
new file mode 100644
index 00000000..06a61085
--- /dev/null
+++ b/send-dump.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2016 Fujitsu. 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.
+ */
+
+#ifndef __BTRFS_SEND_DUMP_H__
+#define __BTRFS_SEND_DUMP_H__
+
+#include <linux/limits.h>
+
+struct btrfs_dump_send_args {
+ char full_subvol_path[PATH_MAX];
+ char root_path[PATH_MAX];
+};
+
+extern struct btrfs_send_ops btrfs_print_send_ops;
+
+#endif