Displaying 5 results from an estimated 5 matches for "cramfs_image".
2006 Feb 05
1
Add swap support to fstype, second version
...!memcmp(ssb->magic, SWAP_MAGIC_2, SWAP_MAGIC_L)) {
+ *blocks = 0;
+ return 1;
+ }
+ return 0;
+}
+
struct imagetype {
off_t block;
const char name[12];
@@ -189,17 +206,18 @@
};
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, "minix", minix_image },
- { 1, "ext3", ext3_image },
- { 1, "ext2", ext2_image },
- { 8, "reiserfs", reiserfs_image },
- { 64, &...
2006 Feb 05
0
Add LUKS support to fstype, second version
...rtition_header *)buf;
+
+ if (!memcmp(lph->magic, LUKS_MAGIC, LUKS_MAGIC_L)) {
+ /* FSSIZE is dictated by the underlying fs, not by LUKS */
+ *blocks = 0;
+ return 1;
+ }
+ return 0;
+}
+
struct imagetype {
off_t block;
const char name[12];
@@ -179,6 +193,7 @@
{ 0, "cramfs", cramfs_image },
{ 0, "romfs", romfs_image },
{ 0, "xfs", xfs_image },
+ { 0, "luks", luks_image },
{ 1, "minix", minix_image },
{ 1, "ext3", ext3_image },
{ 1, "ext2", ext2_image },
Index: klibc/usr/kinit/fstype/luks_fs.h
================...
2006 Mar 31
0
Probe ext2 and ext3 before minix
...oid *, 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 },
- { 1, "minix", minix_image...
2006 Jul 05
0
[PATCH] Do LUKS detection later in fstype
...ll 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", reiserfs_image},
{64, "reiserfs",...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...gic == SQUASHFS_MAGIC
+ || sb->s_magic == SQUASHFS_MAGIC_SWAP) {
+ *blocks = (unsigned long long) sb->bytes_used;
+ return 1;
+ }
+ return 0;
+}
+
struct imagetype {
off_t block;
const char name[12];
@@ -287,6 +301,7 @@ static struct imagetype images[] = {
{0, "cramfs", cramfs_image},
{0, "romfs", romfs_image},
{0, "xfs", xfs_image},
+ {0, "squashfs", squashfs_image},
{1, "ext3", ext3_image},
{1, "ext2", ext2_image},
{1, "minix", minix_image},
diff --git a/usr/kinit/fstype/squashfs_fs.h b/usr/kinit/fstype/sq...