search for: gzip_imag

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

Did you mean: gzip_image
2006 Feb 05
1
Add swap support to fstype, second version
...#include <netinet/in.h> #include <sys/vfs.h> +#include <asm/page.h> #define cpu_to_be32(x) __cpu_to_be32(x) /* Needed by romfs_fs.h */ @@ -49,6 +50,9 @@ #define BLOCK_SIZE 1024 +/* Swap needs the definition of block size */ +#include "swap_fs.h" + static int gzip_image(const unsigned char *buf, unsigned long long *bytes) { if (buf[0] == 037 && (buf[1] == 0213 || buf[1] == 0236)) { @@ -182,6 +186,19 @@ return 0; } +static int swap_image(const unsigned char *buf, unsigned long long *blocks) +{ + const struct swap_super_block *ssb = + (const struct...
2006 Mar 31
0
Probe ext2 and ext3 before minix
...0500 @@ -229,6 +229,10 @@ int (*identify)(const void *, unsigned long long *); }; +/* Minix needs to come after ext[23] to make sure that the + * minix can't get mistaken for it. + */ + static struct 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...
2006 Apr 18
0
[patch] fstype fix ext3 <-> lvm2 detection
...ext3/ext2 to look like minix by pure random chance. + * + * LVM comes after all other filesystems since it's possible + * that an old lvm signature is left on the disk if pvremove + * is not used before creating the 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_...
2006 Jul 05
0
[PATCH] Do LUKS detection later in fstype
...truct imagetype { * LVM comes after all other filesystems since it's possible * that an old lvm signature is left on the disk if pvremove * is not used before creating the new fs. + * + * The same goes for LUKS as for LVM. */ static struct imagetype images[] = { {0, "gzip", gzip_image}, {0, "cramfs", cramfs_image}, {0, "romfs", romfs_image}, {0, "xfs", xfs_image}, - {0, "luks", luks_image}, {1, "ext3", ext3_image}, {1, "ext2", ext2_image}, {1, "minix", minix_image}, {8, "reiserfs", rei...