Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * dir.h - Defines for directory handling in NTFS Linux kernel driver. Part of
0004  *     the Linux-NTFS project.
0005  *
0006  * Copyright (c) 2002-2004 Anton Altaparmakov
0007  */
0008 
0009 #ifndef _LINUX_NTFS_DIR_H
0010 #define _LINUX_NTFS_DIR_H
0011 
0012 #include "layout.h"
0013 #include "inode.h"
0014 #include "types.h"
0015 
0016 /*
0017  * ntfs_name is used to return the file name to the caller of
0018  * ntfs_lookup_inode_by_name() in order for the caller (namei.c::ntfs_lookup())
0019  * to be able to deal with dcache aliasing issues.
0020  */
0021 typedef struct {
0022     MFT_REF mref;
0023     FILE_NAME_TYPE_FLAGS type;
0024     u8 len;
0025     ntfschar name[0];
0026 } __attribute__ ((__packed__)) ntfs_name;
0027 
0028 /* The little endian Unicode string $I30 as a global constant. */
0029 extern ntfschar I30[5];
0030 
0031 extern MFT_REF ntfs_lookup_inode_by_name(ntfs_inode *dir_ni,
0032         const ntfschar *uname, const int uname_len, ntfs_name **res);
0033 
0034 #endif /* _LINUX_NTFS_FS_DIR_H */