Displaying 5 results from an estimated 5 matches for "lvm2_image".
2006 Apr 18
0
[patch] fstype fix ext3 <-> lvm2 detection
...new fs.
*/
static struct imagetype images[] = {
{ 0, "gzip", gzip_image },
@@ -240,14 +245,14 @@ static struct imagetype images[] = {
{ 0, "romfs", romfs_image },
{ 0, "xfs", xfs_image },
{ 0, "luks", luks_image },
- { 0, "lvm2", lvm2_image },
- { 1, "lvm2", lvm2_image },
{ 1, "ext3", ext3_image },
{ 1, "ext2", ext2_image },
{ 1, "minix", minix_image },
{ 8, "reiserfs", reiserfs_image },
{ 64, "reiserfs", reiserfs_image },
{ 32, "jfs", jfs_ima...
2006 Mar 22
0
[patch] Add LVM2 detection to fstype
...nd Reiserfs bits are currently untested.
*/
@@ -30,6 +30,7 @@
#include "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)...
2006 Mar 31
0
Probe ext2 and ext3 before minix
...imagetype images[] = {
{ 0, "gzip", gzip_image },
{ 0, "cramfs", cramfs_image },
@@ -237,9 +241,9 @@
{ 0, "luks", luks_image },
{ 0, "lvm2", lvm2_image },
{ 1, "lvm2", lvm2_image },
- { 1, "minix", minix_image },
{ 1, "ext3", ext3_image },
{ 1, "ext2", ext2_image },
+ { 1,...
2006 Jul 05
0
[PATCH] Do LUKS detection later in fstype
...{1, "ext3", ext3_image},
{1, "ext2", ext2_image},
{1, "minix", minix_image},
{8, "reiserfs", reiserfs_image},
{64, "reiserfs", reiserfs_image},
{32, "jfs", jfs_image},
+ {0, "luks", luks_image},
{0, "lvm2", lvm2_image},
{1, "lvm2", lvm2_image},
{-1, "swap", swap_image},
2006 Sep 13
0
[patch] add iso9660 detection to fstype
...t imagetype {
off_t block;
const char name[12];
@@ -250,6 +266,7 @@
{8, "reiserfs", reiserfs_image},
{64, "reiserfs", reiserfs_image},
{32, "jfs", jfs_image},
+ {32, "iso9660", iso_image},
{0, "luks", luks_image},
{0, "lvm2", lvm2_image},
{1, "lvm2", lvm2_image},
diff -Nru klibc/usr/kinit/fstype/iso9660_sb.h klibc-hack/usr/kinit/fstype/iso9660_sb.h
--- klibc/usr/kinit/fstype/iso9660_sb.h 1970-01-01 01:00:00.000000000 +0100
+++ klibc-hack/usr/kinit/fstype/iso9660_sb.h 2006-09-14 00:03:28.000000000 +0200
@@ -0,0 +1,24 @@...