search for: ocfs2_super_block_signature

Displaying 1 result from an estimated 1 matches for "ocfs2_super_block_signature".

2007 Aug 21
1
[git patch] dmesg + fstype ocfs2
...jfs_superblock to @@ -312,6 +313,19 @@ static int gfs2_image(const void *buf, unsigned long long *bytes) return 0; } +static int ocfs2_image(const void *buf, unsigned long long *bytes) +{ + const struct ocfs2_dinode *sb = + (const struct ocfs2_dinode *)buf; + + if (!memcmp(sb->i_signature, OCFS2_SUPER_BLOCK_SIGNATURE, + sizeof(OCFS2_SUPER_BLOCK_SIGNATURE) - 1)) { + *bytes = 0; + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -340,6 +354,7 @@ static struct imagetype images[] = { {1, "ext3", ext3_image}, {1, "ext2", ext2_image}, {1, "...