Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv5692/libntfs
Modified Files:
unistr.c
Log Message:
mkntfs alpha release is here! Yey!
The only thing I am worried about is the fact that the system call to get the
number of sectors on the device returns a value rounded to the nearest 1024
bytes (converted to 512 byte blocks) thus we might be writting the backup boot
sector too early instead of on the real last sector but there is nothing I can
do apart from starting to play games like accessing the main device for hds
instead of the partition device which wouldn't help in the case of the last
partition though... Alternatively have to place the backup boot sector in the
middle of the disk like WinNT3.51 and earlier did but I need an image to see
exactly how they did it and even then we have the problem of not knowing where
the middle of the disk is as we don't really know how many sectors there are
for real with Linux kernel lying to us.
Index: unistr.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/unistr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -U2 -r1.6 -r1.7
--- unistr.c 2001/06/09 00:25:55 1.6
+++ unistr.c 2001/06/09 16:31:13 1.7
@@ -94,5 +94,5 @@
* 0 if the names match,
* 1 if the second name collates before the first one, or
- * @ec if an invalid character is encountered in @name1 during the comparison.
+ * @err_val if an invalid character is found in @name1 during the comparison.
*
* The following characters are considered invalid: '"', '*', '<', '>' and '?'.
@@ -108,5 +108,5 @@
#ifdef DEBUG
if (!name1 || !name2 || ic && !upcase && upcase_len) {
- fprintf(stderr, "ntfs_wcsncmp() received NULL pointer!\n");
+ fprintf(stderr, "ntfs_collate_names received NULL pointer!\n");
exit(1);
}
@@ -122,5 +122,5 @@
c2 = le16_to_cpu(upcase[c2]);
}
- if (c1 < 64 && legal_ansi_char_array[c1] & 8);
+ if (c1 < 64 && legal_ansi_char_array[c1] & 8)
return err_val;
if (c1 < c2)
@@ -128,6 +128,4 @@
if (c1 > c2)
return 1;
- ++name1;
- ++name2;
}
if (name1_len < name2_len)
|