Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv24251/libntfs
Modified Files:
attrib.c bootsect.c
Log Message:
New api call is_boot_sector_ntfs. A few folding help cleanups.
Index: attrib.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/attrib.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -U2 -r1.32 -r1.33
--- attrib.c 24 Apr 2002 00:47:56 -0000 1.32
+++ attrib.c 24 Apr 2002 01:37:37 -0000 1.33
@@ -1313,4 +1313,5 @@
return 0;
}
+
#endif
Index: bootsect.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/bootsect.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -U2 -r1.8 -r1.9
--- bootsect.c 21 Apr 2002 01:26:39 -0000 1.8
+++ bootsect.c 24 Apr 2002 01:37:37 -0000 1.9
@@ -29,4 +29,18 @@
#include "debug.h"
+/**
+ * is_boot_sector_ntfs - check if a buffer contains a valid ntfs boot sector
+ * @b: buffer containing putative boot sector to analyze
+ * @silent: if zero, output progress messages to stdout
+ *
+ * Check if the buffer @b contains a valid ntfs boot sector. The buffer @b
+ * must be at least 512 bytes in size.
+ *
+ * If @silent is zero, output progress messages to stdout. Otherwise, do not
+ * output any messages (except when configured with --enable-debug in which
+ * case warning/debug messages may be displayed).
+ *
+ * Return TRUE if @b contains a valid ntfs boot sector and FALSE if not.
+ */
BOOL is_boot_sector_ntfs(const NTFS_BOOT_SECTOR *b, const BOOL silent)
{
|