#include <linux/fs.h>
#include <linux/posix_acl.h>
#include <linux/posix_acl_xattr.h>
#include <linux/xattr.h>
#include "debug.h"
#include "ntfs.h"
#include "ntfs_fs.h"
#define SYSTEM_DOS_ATTRIB …
#define SYSTEM_NTFS_ATTRIB …
#define SYSTEM_NTFS_ATTRIB_BE …
#define SYSTEM_NTFS_SECURITY …
static inline size_t unpacked_ea_size(const struct EA_FULL *ea)
{ … }
static inline size_t packed_ea_size(const struct EA_FULL *ea)
{ … }
static inline bool find_ea(const struct EA_FULL *ea_all, u32 bytes,
const char *name, u8 name_len, u32 *off, u32 *ea_sz)
{ … }
static int ntfs_read_ea(struct ntfs_inode *ni, struct EA_FULL **ea,
size_t add_bytes, const struct EA_INFO **info)
{ … }
static ssize_t ntfs_list_ea(struct ntfs_inode *ni, char *buffer,
size_t bytes_per_buffer)
{ … }
static int ntfs_get_ea(struct inode *inode, const char *name, size_t name_len,
void *buffer, size_t size, size_t *required)
{ … }
static noinline int ntfs_set_ea(struct inode *inode, const char *name,
size_t name_len, const void *value,
size_t val_size, int flags, bool locked,
__le16 *ea_size)
{ … }
#ifdef CONFIG_NTFS3_FS_POSIX_ACL
struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry,
int type)
{ … }
static noinline int ntfs_set_acl_ex(struct mnt_idmap *idmap,
struct inode *inode, struct posix_acl *acl,
int type, bool init_acl)
{ … }
int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
struct posix_acl *acl, int type)
{ … }
int ntfs_init_acl(struct mnt_idmap *idmap, struct inode *inode,
struct inode *dir)
{ … }
#endif
int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry)
{ … }
ssize_t ntfs_listxattr(struct dentry *dentry, char *buffer, size_t size)
{ … }
static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de,
struct inode *inode, const char *name, void *buffer,
size_t size)
{ … }
static noinline int ntfs_setxattr(const struct xattr_handler *handler,
struct mnt_idmap *idmap, struct dentry *de,
struct inode *inode, const char *name,
const void *value, size_t size, int flags)
{ … }
int ntfs_save_wsl_perm(struct inode *inode, __le16 *ea_size)
{ … }
void ntfs_get_wsl_perm(struct inode *inode)
{ … }
static bool ntfs_xattr_user_list(struct dentry *dentry)
{ … }
static const struct xattr_handler ntfs_other_xattr_handler = …;
const struct xattr_handler * const ntfs_xattr_handlers[] = …;