summaryrefslogtreecommitdiffstats
path: root/src/ntfs.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/ntfs.c
parent86319057d27d7e2a90da5e56178e7824455413ec (diff)
Add blocksize in filesystem description
Diffstat (limited to 'src/ntfs.c')
-rw-r--r--src/ntfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ntfs.c b/src/ntfs.c
index 77eddba..9806a05 100644
--- a/src/ntfs.c
+++ b/src/ntfs.c
@@ -113,10 +113,11 @@ int recover_NTFS(disk_t *disk_car, const struct ntfs_boot_sector*ntfs_header,par
static int set_NTFS_info(disk_t *disk_car, const struct ntfs_boot_sector*ntfs_header,partition_t *partition,const int verbose)
{
partition->fsname[0]='\0';
+ partition->blocksize=ntfs_header->sectors_per_cluster*ntfs_sector_size(ntfs_header);
if(partition->sb_offset==0)
- strncpy(partition->info, "NTFS", sizeof(partition->info));
+ snprintf(partition->info, sizeof(partition->info), "NTFS, blocksize=%u", partition->blocksize);
else
- strncpy(partition->info, "NTFS found using backup sector!", sizeof(partition->info));
+ snprintf(partition->info, sizeof(partition->info), "NTFS found using backup sector, blocksize=%u", partition->blocksize);
return ntfs_read_MFT(disk_car, partition, ntfs_header, 0x60, verbose);
}