summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-08-12 20:29:20 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-08-12 20:29:20 +0200
commitb3c3f5255cf3ceb461ac8bb8ad882e6048426f76 (patch)
tree704e749df6d5acb669b9d6644fca64ed3a7c2653 /src
parentb76d14734455fd105b81e5ad0bdae2956583484c (diff)
Return blocksize for HFS filesystem
Diffstat (limited to 'src')
-rw-r--r--src/hfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hfs.c b/src/hfs.c
index 4b0e09d..1d34b9c 100644
--- a/src/hfs.c
+++ b/src/hfs.c
@@ -123,7 +123,9 @@ int test_HFS(disk_t *disk_car, const hfs_mdb_t *hfs_mdb,partition_t *partition,c
static int set_HFS_info(partition_t *partition, const hfs_mdb_t *hfs_mdb)
{
unsigned int name_size=sizeof(hfs_mdb->drVN)-1;
- snprintf(partition->info,sizeof(partition->info),"HFS");
+ partition->blocksize=be32(hfs_mdb->drAlBlkSiz);
+ snprintf(partition->info, sizeof(partition->info),
+ "HFS blocksize=%u", partition->blocksize);
if(name_size>hfs_mdb->drVN[0])
name_size=hfs_mdb->drVN[0];
memcpy(partition->fsname,&hfs_mdb->drVN[0]+1,name_size);