[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ntfs-cvs
Subject:    [Linux-NTFS-cvs] CVS: ntfsprogs/libntfs dir.c,1.81,1.82
From:       Yura Pakhuchiy <yura () delta357 ! server4you ! de>
Date:       2006-12-11 3:16:24
Message-ID: E1GtbeS-0004jx-H1 () delta357 ! server4you ! de
[Download RAW message or body]


Changes by: yura

Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357:/tmp/cvs-serv18111/libntfs

Modified Files:
	dir.c 
Log Message:
fix clusters per index block calculation (Szaka)


Index: dir.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/dir.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -p -r1.81 -r1.82
--- dir.c	9 Dec 2006 14:01:12 -0000	1.81
+++ dir.c	11 Dec 2006 03:16:22 -0000	1.82
@@ -1244,8 +1244,9 @@ static ntfs_inode *__ntfs_create(ntfs_in
 					ni->vol->indx_record_size >>
 					ni->vol->cluster_size_bits;
 		else
-			ir->clusters_per_index_block =
-					-ni->vol->indx_record_size_bits;
+			ir->clusters_per_index_block = 
+					ni->vol->indx_record_size >>
+					ni->vol->sector_size_bits;
 		ir->index.entries_offset = cpu_to_le32(sizeof(INDEX_HEADER));
 		ir->index.index_length = cpu_to_le32(index_len);
 		ir->index.allocated_size = cpu_to_le32(index_len);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-NTFS-cvs mailing list
Linux-NTFS-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-ntfs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic