search for: xfs_is_valid_sb

Displaying 3 results from an estimated 3 matches for "xfs_is_valid_sb".

2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
...CTOR_SHIFT(fs) = disk->sector_shift; SECTOR_SIZE(fs) = 1 << SECTOR_SHIFT(fs); - if (xfs_read_superblock(fs, &sb)) { + if (xfs_read_sb(fs, &sb)) { xfs_error("Superblock read failed"); goto out; } - - if (!xfs_is_valid_magicnum(&sb)) { + if (!xfs_is_valid_sb(&sb)) { xfs_error("Invalid superblock"); goto out; } - - xfs_debug("magicnum 0x%lX", be32_to_cpu(sb.sb_magicnum)); + xfs_debug("sb magic: 0x%lX", be32_to_cpu(sb.sb_magicnum)); info = xfs_new_sb_info(&sb); if (!info) { xfs_error(&quo...
2016 Jan 08
0
[PATCH] xfs: Add support for v3 directories
...s not to commit this patch (sent during 2015Dec)? Additionally: 1_ There was a patch sent by Paulo during 2015Jul: xfs: use cache_read() to read contiguous fs blocks Is it still adequate / relevant / valid / current/ needed / desired? Another patch, "xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb", also sent during 2015Jul, was already committed. 2_ In "mbr/mbr.S" as of v.6.03, there is specific code for XFS' VBRs. Besides the resulting "mbr.bin", are others "bios/mbr/*.bin" binaries capable of a similar / equivalent resulting feature (i.e. using...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...def struct xfs_da3_node_hdr { + xfs_da3_blkinfo_t info; /* block type, links, etc. */ + uint16_t count; /* count of active entries */ + uint16_t level; /* level above leaves (leaf == 0) */ + uint32_t pad32; +} __attribute__((__packed__)) xfs_da3_node_hdr_t; static inline bool xfs_is_valid_sb(const xfs_sb_t *sb) { diff --git a/core/fs/xfs/xfs_dinode.c b/core/fs/xfs/xfs_dinode.c index 55be6e2..dff7382 100644 --- a/core/fs/xfs/xfs_dinode.c +++ b/core/fs/xfs/xfs_dinode.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2013 Paulo Alcantara <pcacjr at zytor.com> + * Copyright (c) 2012-2015...