search for: lvm2_super_block

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

2006 Mar 22
0
[patch] Add LVM2 detection to fstype
..."ext3_fs.h" #include "xfs_sb.h" #include "luks_fs.h" +#include "lvm2_sb.h" /* * Slightly cleaned up version of jfs_superblock to @@ -202,6 +203,26 @@ return 0; } +static int lvm2_image(const void *buf, unsigned long long *blocks) +{ + const struct lvm2_super_block *lsb; + int i; + + /* We must check every 512 byte sector */ + for (i = 0; i < BLOCK_SIZE; i += 0x200) { + lsb = (const struct lvm2_super_block *)(buf + i); + + if (!memcmp(lsb->magic, LVM2_MAGIC, LVM2_MAGIC_L) && + !memcmp(lsb->type, LVM2_TYPE, LVM2_TYPE_L)) { + /* This...