summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-16 08:21:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-16 08:21:49 +0200
commit95792e4b6829e0241866c24429880245fdb116a9 (patch)
tree9a1f8a067b0deb562c4765fcb47f7956e7f03ccf /src
parent4d1c9e3d0db79e294c85e9c82451e31ca65c655d (diff)
Reserve more bytes for partition information
Diffstat (limited to 'src')
-rw-r--r--src/common.h6
-rw-r--r--src/ext2.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/common.h b/src/common.h
index 2b7b808..6441743 100644
--- a/src/common.h
+++ b/src/common.h
@@ -387,9 +387,9 @@ struct param_disk_struct
struct partition_struct
{
- char fsname[80];
- char partname[80];
- char info[80];
+ char fsname[128];
+ char partname[128];
+ char info[128];
uint64_t part_offset;
uint64_t part_size;
uint64_t sborg_offset;
diff --git a/src/ext2.c b/src/ext2.c
index 86f2f58..c2b2c8c 100644
--- a/src/ext2.c
+++ b/src/ext2.c
@@ -75,16 +75,16 @@ static int set_EXT2_info(const struct ext2_super_block *sb, partition_t *partiti
else
snprintf(partition->info, sizeof(partition->info), "ext2 blocksize=%u", partition->blocksize);
if(EXT2_HAS_RO_COMPAT_FEATURE(sb,EXT2_FEATURE_RO_COMPAT_LARGE_FILE)!=0)
- strcat(partition->info," Large file");
+ strcat(partition->info," Large_file");
if(EXT2_HAS_RO_COMPAT_FEATURE(sb,EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)!=0)
- strcat(partition->info," Sparse superblock");
+ strcat(partition->info," Sparse_SB");
if(EXT2_HAS_INCOMPAT_FEATURE(sb,EXT3_FEATURE_INCOMPAT_RECOVER)!=0)
strcat(partition->info," Recover");
if(EXT2_HAS_INCOMPAT_FEATURE(sb,EXT3_FEATURE_INCOMPAT_JOURNAL_DEV)!=0)
- strcat(partition->info," Journal dev");
+ strcat(partition->info," Journal_dev");
if(le16(sb->s_block_group_nr)!=0)
{
- strcat(partition->info," Backup superblock");
+ strcat(partition->info," Backup_SB");
if(verbose>0)
{
log_warning("\nblock_group_nr %u\n",le16(sb->s_block_group_nr));