]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/unicrash.h
85fcabc6f44d14f358cd8536e8d3b313c3b960e2
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
6 #ifndef XFS_SCRUB_UNICRASH_H_
7 #define XFS_SCRUB_UNICRASH_H_
11 /* Unicode name collision detection. */
16 bool unicrash_dir_init(struct unicrash
**ucp
, struct scrub_ctx
*ctx
,
17 struct xfs_bstat
*bstat
);
18 bool unicrash_xattr_init(struct unicrash
**ucp
, struct scrub_ctx
*ctx
,
19 struct xfs_bstat
*bstat
);
20 bool unicrash_fs_label_init(struct unicrash
**ucp
, struct scrub_ctx
*ctx
);
21 void unicrash_free(struct unicrash
*uc
);
22 bool unicrash_check_dir_name(struct unicrash
*uc
, const char *descr
,
23 struct dirent
*dirent
);
24 bool unicrash_check_xattr_name(struct unicrash
*uc
, const char *descr
,
25 const char *attrname
);
26 bool unicrash_check_fs_label(struct unicrash
*uc
, const char *descr
,
29 # define unicrash_dir_init(u, c, b) (true)
30 # define unicrash_xattr_init(u, c, b) (true)
31 # define unicrash_label_init(u, c) (true)
32 # define unicrash_free(u) do {(u) = (u);} while (0)
33 # define unicrash_check_dir_name(u, d, n) (true)
34 # define unicrash_check_xattr_name(u, d, n) (true)
35 # define unicrash_check_fs_label(u, d, n) (true)
36 #endif /* HAVE_LIBICU */
38 #endif /* XFS_SCRUB_UNICRASH_H_ */