projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf83a41
)
btrfs-progs: convert: use fixed lenght array for source fs name
author
David Sterba
<dsterba@suse.com>
Mon, 30 Jan 2017 13:11:19 +0000
(14:11 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 8 Mar 2017 12:00:46 +0000
(13:00 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
convert/source-fs.h
patch
|
blob
|
history
diff --git
a/convert/source-fs.h
b/convert/source-fs.h
index
d074ead
..
3ee429a
100644
(file)
--- a/
convert/source-fs.h
+++ b/
convert/source-fs.h
@@
-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,