blob: caef8969b0ce4a180bcc8f5278e5b0d3c7284be1 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2018 Oracle. All Rights Reserved.
* Author: Darrick J. Wong <darrick.wong@oracle.com>
*/
#ifndef XFS_SCRUB_VFS_H_
#define XFS_SCRUB_VFS_H_
typedef bool (*scan_fs_tree_dir_fn)(struct scrub_ctx *, const char *,
int, void *);
typedef bool (*scan_fs_tree_dirent_fn)(struct scrub_ctx *, const char *,
int, struct dirent *, struct stat *, void *);
bool scan_fs_tree(struct scrub_ctx *ctx, scan_fs_tree_dir_fn dir_fn,
scan_fs_tree_dirent_fn dirent_fn, void *arg);
void fstrim(struct scrub_ctx *ctx);
#endif /* XFS_SCRUB_VFS_H_ */