]>
Commit | Line | Data |
---|---|---|
2b686ab3 DW |
1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | |
3 | * Copyright (c) 2007, 2011 SGI | |
4 | * All Rights Reserved. | |
5 | */ | |
6 | #ifndef __DB_OBFUSCATE_H__ | |
7 | #define __DB_OBFUSCATE_H__ | |
8 | ||
9 | /* Routines to obfuscate directory filenames and xattr names. */ | |
10 | ||
11 | #define is_invalid_char(c) ((c) == '/' || (c) == '\0') | |
12 | ||
13 | void obfuscate_name(xfs_dahash_t hash, size_t name_len, unsigned char *name, | |
14 | bool is_dirent); | |
15 | int find_alternate(size_t name_len, unsigned char *name, uint32_t seq); | |
16 | ||
17 | #endif /* __DB_OBFUSCATE_H__ */ |