patch-2.3.30 linux/fs/ntfs/super.c

Next file: linux/fs/open.c
Previous file: linux/fs/ntfs/fs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/fs/ntfs/super.c linux/fs/ntfs/super.c
@@ -91,12 +91,13 @@
 	if(vol->mft_clusters_per_record<0 && vol->mft_clusters_per_record!=-10)
 		ntfs_error("Unexpected data #4 in boot block\n");
 
-	vol->clustersize=vol->blocksize*vol->clusterfactor;
-	if(vol->mft_clusters_per_record>0)
-		vol->mft_recordsize=
-			vol->clustersize*vol->mft_clusters_per_record;
+	vol->clustersize = vol->blocksize * vol->clusterfactor;
+	if (vol->mft_clusters_per_record > 0)
+		vol->mft_recordbits = vol->clustersize * vol->mft_clusters_per_record;
 	else
-		vol->mft_recordsize=1<<(-vol->mft_clusters_per_record);
+		vol->mft_recordbits = -vol->mft_clusters_per_record;
+
+	vol->mft_recordsize = 1 << vol->mft_recordbits;
 	vol->index_recordsize=vol->clustersize*vol->index_clusters_per_record;
 	/* FIXME: long long value */
 	vol->mft_cluster=NTFS_GETU64(boot+0x30);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)