forked from Mirrors/btrfs-progs
btrfs-progs: image: start a new header for sanitization functions
Will be used by following cleanups, so far only the name structure could be moved here. Signed-off-by: David Sterba <dsterba@suse.com>master
parent
af524c9539
commit
095d143afa
|
@ -37,6 +37,7 @@
|
||||||
#include "extent_io.h"
|
#include "extent_io.h"
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
#include "image/metadump.h"
|
#include "image/metadump.h"
|
||||||
|
#include "image/sanitize.h"
|
||||||
|
|
||||||
#define MAX_WORKER_THREADS (32)
|
#define MAX_WORKER_THREADS (32)
|
||||||
|
|
||||||
|
@ -81,13 +82,6 @@ struct metadump_struct {
|
||||||
int error;
|
int error;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct name {
|
|
||||||
struct rb_node n;
|
|
||||||
char *val;
|
|
||||||
char *sub;
|
|
||||||
u32 len;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct mdrestore_struct {
|
struct mdrestore_struct {
|
||||||
FILE *in;
|
FILE *in;
|
||||||
FILE *out;
|
FILE *out;
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __BTRFS_IMAGE_SANITIZE_H__
|
||||||
|
#define __BTRFS_IMAGE_SANITIZE_H__
|
||||||
|
|
||||||
|
#include "kerncompat.h"
|
||||||
|
#include "image/metadump.h"
|
||||||
|
|
||||||
|
struct name {
|
||||||
|
struct rb_node n;
|
||||||
|
char *val;
|
||||||
|
char *sub;
|
||||||
|
u32 len;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue