search for: xfs_is_valid_magicnum

Displaying 4 results from an estimated 4 matches for "xfs_is_valid_magicnum".

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...
2016 Jan 08
0
[PATCH] xfs: Add support for v3 directories
...; Are there any reasons 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 f...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
Besides supporting newer version of xfs file system, this patch also does some code refactoring and fix completely broken listing and searching on v2-3 node directories. Cc: Gene Cumm <gene.cumm at gmail.com> Cc: H. Peter Anvin <hpa at zytor.com> Cc: Raphael S. Carvalho <raphael.scarv at gmail.com> Cc: Ady <ady-sf at hotmail.com> Signed-off-by: Paulo Alcantara <pcacjr
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...+ struct xfs_fs_info *info; + + xfs_debug("fs %p", fs); + + SECTOR_SHIFT(fs) = disk->sector_shift; + SECTOR_SIZE(fs) = 1 << SECTOR_SHIFT(fs); + + if (xfs_read_superblock(fs, &sb)) { + xfs_error("Superblock read failed"); + goto out; + } + + if (!xfs_is_valid_magicnum(&sb)) { + xfs_error("Invalid superblock"); + goto out; + } + + xfs_debug("magicnum 0x%lX", be32_to_cpu(sb.sb_magicnum)); + + info = xfs_new_sb_info(&sb); + if (!info) { + xfs_error("Failed to fill in filesystem-specific info structure"); + goto out;...