Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv3215/libntfs
Modified Files:
bootsect.c
Added Files:
Makefile
Log Message:
And the last move into CVS. The make files. (Note: compilation is untested
and all changes have been done without testing so if it doesn't compile at
the moment don't be too surprised.)
--- NEW FILE ---
#
# Makefile for some libraries needed by the NTFS utilities.
#
L_TARGET := $(TOPDIR)/lib/libntfs.a
obj-y := bitmap.o ntfs_rec.o disk_io.o volume.o attrib.o mft.o bootsect.o
include $(TOPDIR)/Rules.make
Index: bootsect.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/bootsect.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** bootsect.c 2001/01/25 22:25:43 1.1
--- bootsect.c 2001/01/30 12:29:03 1.2
***************
*** 34,38 ****
printf("\nBeginning bootsector check...\n");
! /* Calculate the checksum. */
if ((void*)b < (void*)&b->checksum) {
__u32 *u = (__u32 *)b;
--- 34,41 ----
printf("\nBeginning bootsector check...\n");
! /* Calculate the checksum. Note, this is just a simple addition of
! all __u32 values in the bootsector starting at the beginning and
! finishing at the offset of the checksum itself (i.e. not including
! the checksum...). */
if ((void*)b < (void*)&b->checksum) {
__u32 *u = (__u32 *)b;
|