2 * Copyright (C) 2018 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it would be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef XFS_SCRUB_VFS_H_
21 #define XFS_SCRUB_VFS_H_
23 typedef bool (*scan_fs_tree_dir_fn
)(struct scrub_ctx
*, const char *,
25 typedef bool (*scan_fs_tree_dirent_fn
)(struct scrub_ctx
*, const char *,
26 int, struct dirent
*, struct stat
*, void *);
28 bool scan_fs_tree(struct scrub_ctx
*ctx
, scan_fs_tree_dir_fn dir_fn
,
29 scan_fs_tree_dirent_fn dirent_fn
, void *arg
);
31 #endif /* XFS_SCRUB_VFS_H_ */