Android-cuttlefish cvd tool
Functions
xattr.c File Reference
#include "fsck.h"
#include "node.h"
#include "xattr.h"
Include dependency graph for xattr.c:

Functions

void * read_all_xattrs (struct f2fs_sb_info *sbi, struct f2fs_node *inode, bool sanity_check)
 
static struct f2fs_xattr_entry__find_xattr (void *base_addr, void *last_base_addr, int index, size_t len, const char *name)
 
void write_all_xattrs (struct f2fs_sb_info *sbi, struct f2fs_node *inode, __u32 hsize, void *txattr_addr)
 
int f2fs_setxattr (struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name, const void *value, size_t size, int flags)
 
int inode_set_selinux (struct f2fs_sb_info *sbi, u32 ino, const char *secon)
 

Function Documentation

◆ __find_xattr()

static struct f2fs_xattr_entry * __find_xattr ( void *  base_addr,
void *  last_base_addr,
int  index,
size_t  len,
const char *  name 
)
static

◆ f2fs_setxattr()

int f2fs_setxattr ( struct f2fs_sb_info sbi,
nid_t  ino,
int  index,
const char *  name,
const void *  value,
size_t  size,
int  flags 
)

◆ inode_set_selinux()

int inode_set_selinux ( struct f2fs_sb_info sbi,
u32  ino,
const char *  secon 
)

◆ read_all_xattrs()

void * read_all_xattrs ( struct f2fs_sb_info sbi,
struct f2fs_node inode,
bool  sanity_check 
)

xattr.c

Many parts of codes are copied from Linux kernel/fs/f2fs.

Copyright (C) 2015 Huawei Ltd. Witten by: Hou Pengyang houpe.nosp@m.ngya.nosp@m.ng@hu.nosp@m.awei.nosp@m..com Liu Shuoran liush.nosp@m.uora.nosp@m.n@hua.nosp@m.wei..nosp@m.com Jaegeuk Kim jaege.nosp@m.uk@k.nosp@m.ernel.nosp@m..org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

◆ write_all_xattrs()

void write_all_xattrs ( struct f2fs_sb_info sbi,
struct f2fs_node inode,
__u32  hsize,
void *  txattr_addr 
)