]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - db/obfuscate.h
xfs: cache last bitmap block in realtime allocator
[thirdparty/xfsprogs-dev.git] / db / obfuscate.h
CommitLineData
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
13void obfuscate_name(xfs_dahash_t hash, size_t name_len, unsigned char *name,
14 bool is_dirent);
15int find_alternate(size_t name_len, unsigned char *name, uint32_t seq);
16
17#endif /* __DB_OBFUSCATE_H__ */