bootsect.h revision 9663:ace9a2ac3683
1/*
2 * bootsect.h - Exports for bootsector record handling. Part of the Linux-NTFS
3 *		project.
4 *
5 * Copyright (c) 2000-2002 Anton Altaparmakov
6 *
7 * This program/include file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program/include file is distributed in the hope that it will be
13 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program (in the main directory of the Linux-NTFS
19 * distribution in the file COPYING); if not, write to the Free Software
20 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 */
22
23#ifndef _NTFS_BOOTSECT_H
24#define _NTFS_BOOTSECT_H
25
26#include "types.h"
27#include "volume.h"
28#include "layout.h"
29
30/**
31 * is_boot_sector_ntfs - check a boot sector for describing an ntfs volume
32 * @b:		buffer containing the boot sector
33 * @silent:	if 1 don't display progress information
34 *
35 * This function checks the boot sector in @b for describing a valid ntfs
36 * volume. Return TRUE if @b is a valid NTFS boot sector or FALSE otherwise.
37 * If silent is FALSE, progress output will be output to stdout. If silent is
38 * TRUE no output to stdout will occur. Errors/warnings to stderr will occur
39 * disregarding the value of silent (but only if configure was run with
40 * --enable-debug).
41 */
42extern BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b, BOOL silent);
43extern int ntfs_boot_sector_parse(ntfs_volume *vol,
44		const NTFS_BOOT_SECTOR *bs);
45
46#endif /* defined _NTFS_BOOTSECT_H */
47
48