From b3c3f5255cf3ceb461ac8bb8ad882e6048426f76 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 12 Aug 2012 20:29:20 +0200 Subject: [PATCH] Return blocksize for HFS filesystem --- src/hfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hfs.c b/src/hfs.c index 4b0e09d9..1d34b9ce 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);