mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-12-13 06:03:24 +08:00
fad531e523
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>
30 lines
835 B
C
30 lines
835 B
C
/*
|
|
* 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
|