search for: xfs_dinode_t

Displaying 5 results from an estimated 5 matches for "xfs_dinode_t".

2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...#define S_IFMT 00170000 #define S_IFSOCK 0140000 @@ -346,8 +349,19 @@ typedef struct xfs_dinode { /* di_next_unlinked is the only non-core field in the old dinode */ uint32_t di_next_unlinked;/* agi unlinked list ptr */ - uint8_t di_literal_area[1]; -} __attribute__((packed)) xfs_dinode_t; + + /* start of the extended dinode, writable fields */ + uint32_t di_crc; /* CRC of the inode */ + uint64_t di_changecount; /* number of attribute changes */ + uint64_t di_lsn; /* flush sequence */ + uint64_t di_flags2; /* more random flags */ + uint8_t di_pad2[16]; +...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...t;xfs_sb.h" +#include "xfs_ag.h" +#include "misc.h" +#include "xfs.h" +#include "xfs_dinode.h" +#include "xfs_dir2.h" +#include "xfs_readdir.h" + +static inline int xfs_fmt_local_readdir(struct file *file, + struct dirent *dirent, xfs_dinode_t *core) +{ + return xfs_readdir_dir2_block(file, dirent, core); +} + +static inline int xfs_fmt_extents_readdir(struct file *file, + struct dirent *dirent, + xfs_dinode_t *core) +{ + int retval; + + if (be32_to_cpu(core->di_nextents) <= 1) { + /* Single-block Directories *...
2016 Jan 18
1
[PATCH] xfs: Add support for v3 directories
...ir2.c >> index de37ef7..f738a58 100644 > >> --- a/core/fs/xfs/xfs_dir2.c >> +++ b/core/fs/xfs/xfs_dir2.c > >> @@ -593,110 +628,99 @@ struct inode *xfs_dir2_node_find_entry(const char >> *dname, struct inode *parent, >> xfs_dinode_t *core) >> { > >> - uint32_t hash = 0; >> + uint32_t hash; > >> + uint16_t count; > >> - int mid = 0; >> + int mid; > > >> + if (be16_to_cpu(lhdr->info.magic) == XFS_DIR2_LEAFN_MAGIC) { >> + count = be16_to_cp...
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
xfs_is_valid_magicnum is not actually a generic function that checks for magic numbers, instead it checks only for superblock's one. Signed-off-by: Paulo Alcantara <pcacjr at zytor.com> --- core/fs/xfs/xfs.c | 13 +++++-------- core/fs/xfs/xfs.h | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index
2016 Jan 18
0
[PATCH] xfs: Add support for v3 directories
...fs/xfs/xfs_dir2.c b/core/fs/xfs/xfs_dir2.c > index de37ef7..f738a58 100644 > --- a/core/fs/xfs/xfs_dir2.c > +++ b/core/fs/xfs/xfs_dir2.c > @@ -593,110 +628,99 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, > xfs_dinode_t *core) > { > - uint32_t hash = 0; > + uint32_t hash; > + uint16_t count; > - int mid = 0; > + int mid; > + if (be16_to_cpu(lhdr->info.magic) == XFS_DIR2_LEAFN_MAGIC) { > + count = be16_to_cpu(lhdr->count); > + ents = (xfs_dir2_lea...