search for: f2fs_image

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

2014 Feb 24
0
[PATCH] fstype: f2fs support
...e "romfs_fs.h" #include "squashfs_fs.h" #include "xfs_sb.h" +#include "f2fs_fs.h" /* * Slightly cleaned up version of jfs_superblock to @@ -472,6 +473,18 @@ static int btrfs_image(const void *buf, unsigned long long *bytes) return 0; } +static int f2fs_image(const void *buf, unsigned long long *bytes) +{ + const struct f2fs_super_block *sb = + (const struct f2fs_super_block *)buf; + + if (sb->magic == __cpu_to_le32(F2FS_SUPER_MAGIC)) { + *bytes = 0; + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -...