/* -*- mode: c; c-basic-offset: 8; -*-
 * vim: noexpandtab sw=8 ts=8 sts=0:
 *
 * filecheck.h
 *
 * Online file check.
 *
 * Copyright (C) 2016 SuSE.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation, version 2.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */


#ifndef FILECHECK_H
#define FILECHECK_H

#include <linux/types.h>
#include <linux/list.h>


/* File check errno */
enum {
	OCFS2_FILECHECK_ERR_SUCCESS = 0,	/* Success */
	OCFS2_FILECHECK_ERR_FAILED = 1000,	/* Other failure */
	OCFS2_FILECHECK_ERR_INPROGRESS,		/* In progress */
	OCFS2_FILECHECK_ERR_READONLY,		/* Read only */
	OCFS2_FILECHECK_ERR_INJBD,		/* Buffer in jbd */
	OCFS2_FILECHECK_ERR_INVALIDINO,		/* Invalid ino */
	OCFS2_FILECHECK_ERR_BLOCKECC,		/* Block ecc */
	OCFS2_FILECHECK_ERR_BLOCKNO,		/* Block number */
	OCFS2_FILECHECK_ERR_VALIDFLAG,		/* Inode valid flag */
	OCFS2_FILECHECK_ERR_GENERATION,		/* Inode generation */
	OCFS2_FILECHECK_ERR_UNSUPPORTED		/* Unsupported */
};

#define OCFS2_FILECHECK_ERR_START	OCFS2_FILECHECK_ERR_FAILED
#define OCFS2_FILECHECK_ERR_END		OCFS2_FILECHECK_ERR_UNSUPPORTED

int ocfs2_filecheck_create_sysfs(struct super_block *sb);
int ocfs2_filecheck_remove_sysfs(struct super_block *sb);

#endif  /* FILECHECK_H */
remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cttimer.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/pci/ctxfi/cttimer.h?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/pci/ctxfi/cttimer.h?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/pci/ctxfi/cttimer.h?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cttimer.h'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='36401cb7ffae731295a6dd1ce2b40d7ad74245f4'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>pci</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>ctxfi</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cttimer.h?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4'>cttimer.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/cttimer.h?h=nds-private-remove&amp;id=36401cb7ffae731295a6dd1ce2b40d7ad74245f4&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>