btrfs-progs: convert: use fixed lenght array for source fs name

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-01-30 14:11:19 +01:00
parent cf83a41a02
commit 6b74f2fbe3

View File

@ -31,8 +31,10 @@ struct task_ctx {
struct btrfs_convert_context;
#define SOURCE_FS_NAME_LEN (16)
struct btrfs_convert_operations {
const char *name;
const char name[SOURCE_FS_NAME_LEN];
int (*open_fs)(struct btrfs_convert_context *cctx, const char *devname);
int (*read_used_space)(struct btrfs_convert_context *cctx);
int (*copy_inodes)(struct btrfs_convert_context *cctx,