xref: /dflybsd-src/sbin/fsck_hammer2/fsck_hammer2.h (revision 0a013d46098e83438e54b17cca48eb20a2429b2e)
15554cc8bSTomohiro Kusumi /*
25554cc8bSTomohiro Kusumi  * Copyright (c) 2019 Tomohiro Kusumi <tkusumi@netbsd.org>
35554cc8bSTomohiro Kusumi  * Copyright (c) 2019 The DragonFly Project
45554cc8bSTomohiro Kusumi  * All rights reserved.
55554cc8bSTomohiro Kusumi  *
65554cc8bSTomohiro Kusumi  * This code is derived from software contributed to The DragonFly Project
75554cc8bSTomohiro Kusumi  * by Matthew Dillon <dillon@dragonflybsd.org>
85554cc8bSTomohiro Kusumi  *
95554cc8bSTomohiro Kusumi  * Redistribution and use in source and binary forms, with or without
105554cc8bSTomohiro Kusumi  * modification, are permitted provided that the following conditions
115554cc8bSTomohiro Kusumi  * are met:
125554cc8bSTomohiro Kusumi  *
135554cc8bSTomohiro Kusumi  * 1. Redistributions of source code must retain the above copyright
145554cc8bSTomohiro Kusumi  *    notice, this list of conditions and the following disclaimer.
155554cc8bSTomohiro Kusumi  * 2. Redistributions in binary form must reproduce the above copyright
165554cc8bSTomohiro Kusumi  *    notice, this list of conditions and the following disclaimer in
175554cc8bSTomohiro Kusumi  *    the documentation and/or other materials provided with the
185554cc8bSTomohiro Kusumi  *    distribution.
195554cc8bSTomohiro Kusumi  * 3. Neither the name of The DragonFly Project nor the names of its
205554cc8bSTomohiro Kusumi  *    contributors may be used to endorse or promote products derived
215554cc8bSTomohiro Kusumi  *    from this software without specific, prior written permission.
225554cc8bSTomohiro Kusumi  *
235554cc8bSTomohiro Kusumi  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
245554cc8bSTomohiro Kusumi  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
255554cc8bSTomohiro Kusumi  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
265554cc8bSTomohiro Kusumi  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
275554cc8bSTomohiro Kusumi  * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
285554cc8bSTomohiro Kusumi  * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
295554cc8bSTomohiro Kusumi  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
305554cc8bSTomohiro Kusumi  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
315554cc8bSTomohiro Kusumi  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
325554cc8bSTomohiro Kusumi  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
335554cc8bSTomohiro Kusumi  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
345554cc8bSTomohiro Kusumi  * SUCH DAMAGE.
355554cc8bSTomohiro Kusumi  */
365554cc8bSTomohiro Kusumi 
375554cc8bSTomohiro Kusumi #ifndef FSCK_HAMMER2_H_
385554cc8bSTomohiro Kusumi #define FSCK_HAMMER2_H_
395554cc8bSTomohiro Kusumi 
405554cc8bSTomohiro Kusumi extern int DebugOpt;
415554cc8bSTomohiro Kusumi extern int ForceOpt;
425554cc8bSTomohiro Kusumi extern int VerboseOpt;
435554cc8bSTomohiro Kusumi extern int QuietOpt;
440abd9570STomohiro Kusumi extern int CountEmpty;
459b8542e1STomohiro Kusumi extern int ScanBest;
46e8135320STomohiro Kusumi extern int ScanPFS;
47*0a013d46STomohiro Kusumi extern int PrintPFS;
4841195a6fSTomohiro Kusumi extern int NumPFSNames;
4941195a6fSTomohiro Kusumi extern char **PFSNames;
50958de672STomohiro Kusumi extern long BlockrefCacheCount;
515554cc8bSTomohiro Kusumi 
525554cc8bSTomohiro Kusumi int test_hammer2(const char *);
535554cc8bSTomohiro Kusumi 
545554cc8bSTomohiro Kusumi #endif /* !FSCK_HAMMER2_H_ */
55