mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Update the NTFS filesystem driver's in-memory and on-disk structures:
- Introduce the infrastructure and initial support for reparse
points and EA attribute.
- Refactor the core ntfs_inode and ntfs_volume structures to support
new features such as iomap.
- Remove the unnecessary types.h and endian.h headers.
- Reorganize the comments in headers for better readability, including
fixing warnings from checkpatch.pl.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
33 lines
846 B
C
33 lines
846 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Defines for directory handling in NTFS Linux kernel driver.
|
|
*
|
|
* Copyright (c) 2002-2004 Anton Altaparmakov
|
|
*/
|
|
|
|
#ifndef _LINUX_NTFS_DIR_H
|
|
#define _LINUX_NTFS_DIR_H
|
|
|
|
#include "inode.h"
|
|
|
|
/*
|
|
* ntfs_name is used to return the file name to the caller of
|
|
* ntfs_lookup_inode_by_name() in order for the caller (namei.c::ntfs_lookup())
|
|
* to be able to deal with dcache aliasing issues.
|
|
*/
|
|
struct ntfs_name {
|
|
u64 mref;
|
|
u8 type;
|
|
u8 len;
|
|
__le16 name[];
|
|
} __packed;
|
|
|
|
/* The little endian Unicode string $I30 as a global constant. */
|
|
extern __le16 I30[5];
|
|
|
|
u64 ntfs_lookup_inode_by_name(struct ntfs_inode *dir_ni,
|
|
const __le16 *uname, const int uname_len, struct ntfs_name **res);
|
|
int ntfs_check_empty_dir(struct ntfs_inode *ni, struct mft_record *ni_mrec);
|
|
|
|
#endif /* _LINUX_NTFS_FS_DIR_H */
|