Changes by: antona
Update of /cvsroot/linux-ntfs/ntfs-driver-tng/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv31085/scripts
Modified Files:
rl.c
Log Message:
Fix a buglet in le/be hanbdling.
Index: rl.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfs-driver-tng/scripts/rl.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -U2 -r1.21 -r1.22
--- rl.c 13 Feb 2002 02:09:35 -0000 1.21
+++ rl.c 13 Feb 2002 03:05:22 -0000 1.22
@@ -131,4 +131,5 @@
BUG_ON (!orig || !new);
+ ntfs_debug ("ntfs_rl_append\n");
right = ntfs_rl_merge (new + nsize - 1, orig + loc + 1);
@@ -177,4 +178,5 @@
BUG_ON (!orig || !new);
+ ntfs_debug ("ntfs_rl_insert\n");
if (loc > 0) {
left = ntfs_rl_merge (orig + loc - 1, new);
@@ -258,4 +260,5 @@
BUG_ON (!orig || !new);
+ ntfs_debug ("ntfs_rl_replace\n");
right = ntfs_rl_merge (new + nsize - 1, orig + loc + 1);
if (loc > 0)
@@ -306,4 +309,5 @@
BUG_ON (!orig || !new);
+ ntfs_debug ("ntfs_rl_split\n");
res = ntfs_rl_realloc (orig, osize, osize + nsize + 1);
if (IS_ERR (res))
@@ -698,5 +702,6 @@
VCN max_cluster;
- max_cluster = (attr->allocated_size + vol->cluster_size - 1) >>
+ max_cluster = (sle64_to_cpu(attr->allocated_size) +
+ vol->cluster_size - 1) >>
vol->cluster_size_bits;
/*
@@ -974,5 +979,5 @@
#endif
-#if 0 || defined (TESTF)
+#if 1 || defined (TESTF)
/**
* fragged
@@ -1036,5 +1041,5 @@
#endif
-#if 0 || (TESTF == 213)
+#if 1 || (TESTF == 213)
rl1 = decompress_mapping_pairs (&vol, buf2, NULL);
if (IS_ERR (rl1))
@@ -1086,5 +1091,5 @@
}
*/
- ntfs_debug_dump_runlist (rl3);
+ //ntfs_debug_dump_runlist (rl3);
#endif
//printf ("%d,%d\n", ntfs_a, ntfs_f);
|