summaryrefslogtreecommitdiffstats
path: root/src/jfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:14:54 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:14:54 +0200
commitcfce3a37ce2a73b6c2bca3c770918f76010710d4 (patch)
tree9ae9716b0c00c607b6b901f534befaad21d6950c /src/jfs.c
parent86319057d27d7e2a90da5e56178e7824455413ec (diff)
Add blocksize in filesystem description
Diffstat (limited to 'src/jfs.c')
-rw-r--r--src/jfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jfs.c b/src/jfs.c
index 0733c81..ef1ecb6 100644
--- a/src/jfs.c
+++ b/src/jfs.c
@@ -60,7 +60,9 @@ int check_JFS(disk_t *disk_car, partition_t *partition)
static int set_JFS_info(const struct jfs_superblock *sb, partition_t *partition)
{
- snprintf(partition->info,sizeof(partition->info),"JFS %u",(unsigned int)le32(sb->s_version));
+ partition->blocksize=le32(sb->s_bsize);
+ snprintf(partition->info, sizeof(partition->info), "JFS %u, blocksize=%u",
+ (unsigned int)le32(sb->s_version), partition->blocksize);
partition->fsname[0]='\0';
if(le32(sb->s_version)==1)
{
@@ -86,7 +88,6 @@ int recover_JFS(disk_t *disk_car, const struct jfs_superblock *sb,partition_t *p
partition->sborg_offset=64*512;
partition->sb_size=JFS_SUPERBLOCK_SIZE;
partition->sb_offset=0;
- partition->blocksize=le32(sb->s_bsize);
guid_cpy(&partition->part_uuid, (const efi_guid_t *)&sb->s_uuid);
if(verbose>0)
{