projects/linux·blob master · refs

32 lines · 846 B

1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Defines for directory handling in NTFS Linux kernel driver.
4 *
5 * Copyright (c) 2002-2004 Anton Altaparmakov
6 */
7
8#ifndef _LINUX_NTFS_DIR_H
9#define _LINUX_NTFS_DIR_H
10
11#include "inode.h"
12
13/*
14 * ntfs_name is used to return the file name to the caller of
15 * ntfs_lookup_inode_by_name() in order for the caller (namei.c::ntfs_lookup())
16 * to be able to deal with dcache aliasing issues.
17 */
18struct ntfs_name {
19 u64 mref;
20 u8 type;
21 u8 len;
22 __le16 name[];
23} __packed;
24
25/* The little endian Unicode string $I30 as a global constant. */
26extern __le16 I30[5];
27
28u64 ntfs_lookup_inode_by_name(struct ntfs_inode *dir_ni,
29 const __le16 *uname, const int uname_len, struct ntfs_name **res);
30int ntfs_check_empty_dir(struct ntfs_inode *ni, struct mft_record *ni_mrec);
31
32#endif /* _LINUX_NTFS_FS_DIR_H */