summaryrefslogtreecommitdiffstats
path: root/src/bfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-08-12 20:27:41 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-08-12 20:27:41 +0200
commit7528a77a4c07ad2ac05dc6955c91369ccedaf0da (patch)
tree0453ec2cdaae3460a12d482b4230a2ef403d9e0c /src/bfs.c
parentea623dfa960904511bce33bd065978662d1de625 (diff)
Return blocksize for XFS filesystem
Diffstat (limited to 'src/bfs.c')
-rw-r--r--src/bfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bfs.c b/src/bfs.c
index b88f368..b9fa52c 100644
--- a/src/bfs.c
+++ b/src/bfs.c
@@ -85,7 +85,9 @@ static int test_BeFS(disk_t *disk_car, const struct disk_super_block*beos_block,
static int set_BeFS_info(const struct disk_super_block *beos_block, partition_t *partition)
{
+ partition->blocksize= 1 << le32(beos_block->block_shift);
partition->info[0]='\0';
+ snprintf(partition->info, sizeof(partition->info), "BeFS blocksize=%u", partition->blocksize);
set_part_name(partition,beos_block->name,B_OS_NAME_LENGTH);
return 0;
}