search for: imagetyp

Displaying 20 results from an estimated 24 matches for "imagetyp".

Did you mean: imagetype
2006 Apr 18
0
[patch] fstype fix ext3 <-> lvm2 detection
...type/fstype.c @@ -6,8 +6,8 @@ * FSTYPE - filesystem type * FSSIZE - filesystem size (if known) * - * We currently detect (in order): - * gzip, cramfs, romfs, xfs, luks, lvm2, minix, ext3, ext2, reiserfs, jfs, swap + * We currently detect the filesystems listed below in the struct + * "imagetype images" (in the order they are listed). * * MINIX, ext3 and Reiserfs bits are currently untested. */ @@ -231,8 +231,13 @@ struct imagetype { /* * Note: + * * Minix test needs to come after ext3/ext2, since it's possible for * ext3/ext2 to look like minix by pure random cha...
2013 Nov 05
1
[LLVMdev] Current state of the lld project (support for writing .dll files)
...st-case. I noticed that, while linking an .exe file worked for a simple main function that calls another function, linking a DLL does not work. The /DLL parameter is not implemented (nor is /NOENTRY). I managed to add handling of the /DLL and /NOENTRY parameters to lld. /DLL successfully sets the imageType to ImageType::DLL. I added code to change the file extension from .exe to .dll. That far it worked fine and a .dll file was created. It was just then that I realized that lld does not seem to write an export section. ;-) Opening the file in Depedency Walker, I did not see my exported function. &g...
2007 Jun 21
19
Writing a tool for Shared Persistent Windows Boot Image
Before, in my "Hard Problem" email I was trying to communicate a design issue were trying to solve with Xen. This is what we need to do: 1) Deploy 24 Windows XP VMs in parallel. 2) Boot them from a shared Windows XP C: drive. 3) Since this is a read-only shared image we obviously can''t have multiple VM''s writing to it. 4) All writes to the boot image for logging,
2007 Jun 21
19
Writing a tool for Shared Persistent Windows Boot Image
Before, in my "Hard Problem" email I was trying to communicate a design issue were trying to solve with Xen. This is what we need to do: 1) Deploy 24 Windows XP VMs in parallel. 2) Boot them from a shared Windows XP C: drive. 3) Since this is a read-only shared image we obviously can''t have multiple VM''s writing to it. 4) All writes to the boot image for logging,
2006 Jul 05
0
[PATCH] Do LUKS detection later in fstype
...gnature leftover could co-exist with a regular fs. Regards, David -------------- next part -------------- diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c index cea219e..89203e1 100644 --- a/usr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -236,19 +236,21 @@ struct 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},...
2014 Feb 24
0
[PATCH] fstype: f2fs support
...g 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]; @@ -502,6 +515,7 @@ static struct imagetype images[] = { {1, "ext2", ext2_image}, {1, "minix", minix_image}, {1, "nilfs2", nilfs2_image}, + {1, "f2fs", f2fs_image}, {2, "ocfs2", ocfs2_image}, {8, &q...
2010 Apr 03
1
[PATCH] btrfs support
...f, unsigned long long *bytes) +{ + const struct btrfs_super_block *sb = + (const struct btrfs_super_block *)buf; + + if (!memcmp(&sb->magic, BTRFS_MAGIC, sizeof(BTRFS_MAGIC)-1)) { + *bytes = (unsigned long long)__le64_to_cpu(sb->total_bytes); + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -496,6 +509,7 @@ static struct imagetype images[] = { {64, "reiserfs", reiserfs_image}, {64, "reiser4", reiser4_image}, {64, "gfs2", gfs2_image}, + {64, "btrfs", btrfs_image}, {32, "jfs", jfs_image...
2006 Feb 05
1
Add swap support to fstype, second version
...ar *buf, unsigned long long *blocks) +{ + const struct swap_super_block *ssb = + (const struct swap_super_block *)buf; + + if (!memcmp(ssb->magic, SWAP_MAGIC_1, SWAP_MAGIC_L) || + !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", luk...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...)buf; + + if (__be32_to_cpu(sb->sb_header.mh_magic) == GFS2_MAGIC + && (__be32_to_cpu(sb->sb_fs_format) == GFS2_FORMAT_FS + || __be32_to_cpu(sb->sb_fs_format) == GFS2_FORMAT_MULTI)) { + *bytes = 0; /* cpu_to_be32(sb->sb_bsize) * ?; */ + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -328,6 +343,7 @@ static struct imagetype images[] = { {8, "reiserfs", reiserfs_image}, {64, "reiserfs", reiserfs_image}, {64, "reiser4", reiser4_image}, + {64, "gfs2", gfs2_image}, {32, "jfs", jfs_...
2007 Aug 21
1
[git patch] dmesg + fstype ocfs2
...ocfs2_image(const void *buf, unsigned long long *bytes) +{ + const struct ocfs2_dinode *sb = + (const struct ocfs2_dinode *)buf; + + if (!memcmp(sb->i_signature, OCFS2_SUPER_BLOCK_SIGNATURE, + sizeof(OCFS2_SUPER_BLOCK_SIGNATURE) - 1)) { + *bytes = 0; + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -340,6 +354,7 @@ static struct imagetype images[] = { {1, "ext3", ext3_image}, {1, "ext2", ext2_image}, {1, "minix", minix_image}, + {2, "ocfs2", ocfs2_image}, {8, "reiserfs", reiserfs_image}, {6...
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
..._check("ext4") || check_for_modules("ext4")); + if ((!test_fs || !ext4dev_present) && ext4_present) + return 0; + return 1; +} + static int ext3_image(const void *buf, unsigned long long *bytes) { const struct ext3_super_block *sb = @@ -370,7 +485,8 @@ static struct imagetype images[] = { {0, "romfs", romfs_image}, {0, "xfs", xfs_image}, {0, "squashfs", squashfs_image}, - {1, "ext4dev", ext4_image}, + {1, "ext4dev", ext4dev_image}, + {1, "ext4", ext4_image}, {1, "ext3", ext3_image}, {1, &qu...
2006 Feb 07
0
Booting centos from a windows ris server - SOLVED
...emplates\ Create 'pxelinux.sif' in ..\templates\ Example 'pxelinux.sif' below: ----------- [OSChooser] Description="Linux Install - Centos 4" Help="Automatically installs Centos 4." LaunchFile = "Setup\English\Tools\PXELinux\i386\templates\pxelinux.0" ImageType =Flat Version="5.2 (0)" Restart ris. The Centos install option will be in the "Maintenance and Trouble Shooting" menu as default. Dean
2006 Feb 05
0
Add LUKS support to fstype, second version
...nsigned long long *blocks) +{ + const struct luks_partition_header *lph = + (const struct luks_partition_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_ima...
2006 Mar 22
0
[patch] Add LVM2 detection to fstype
...+ 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 is just one of possibly many PV's */ + *blocks = 0; + return 1; + } + } + + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -214,6 +235,8 @@ { 0, "romfs", romfs_image }, { 0, "xfs", xfs_image }, { 0, "luks", luks_image }, + { 0, "lvm2", lvm2_image }, + { 1, "lvm2", lvm2_image }, { 1, "minix", minix_...
2006 Mar 31
0
Probe ext2 and ext3 before minix
...15:51:31.000000000 -0500 +++ fstype.c 2006-03-31 15:59:39.000000000 -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_ima...
2006 Sep 13
0
[patch] add iso9660 detection to fstype
..._descriptor *)buf; + const struct iso_hs_volume_descriptor *isohsvd = + (const struct iso_hs_volume_descriptor *)buf; + + if (!memcmp(isovd->id, ISO_MAGIC, ISO_MAGIC_L) || + !memcmp(isohsvd->id, ISO_HS_MAGIC, ISO_HS_MAGIC_L)) { + *blocks = 0; + return 1; + } + return 0; +} + struct 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...
2008 Mar 03
0
[PATCH] nilfs2 support for fstype
...ruct nilfs_super_block *sb = + (const struct nilfs_super_block *)buf; + + if (sb->s_magic == __cpu_to_le16(NILFS_SUPER_MAGIC) && + sb->s_rev_level == __cpu_to_le32(2)) { + *bytes = (unsigned long long)__le64_to_cpu(sb->s_dev_size); + return 1; + } + return 0; +} + struct imagetype { off_t block; const char name[12]; @@ -354,6 +368,7 @@ {1, "ext3", ext3_image}, {1, "ext2", ext2_image}, {1, "minix", minix_image}, + {1, "nilfs2", nilfs2_image}, {2, "ocfs2", ocfs2_image}, {8, "reiserfs", reiserfs_image},...
2006 Jul 28
1
PXElinux and Windows RIS
...ents: ---------------------------------------------------------------------------------------------------------------- [OSChooser] Description = "Linux" Help = "This option runs a Linux installer." LaunchFile = "Setup\English\Images\PXELinux\i386\templates\pxelinux.0" ImageType = Flat Version="1.01" ---------------------------------------------------------------------------------------------------------------- In Setup\English\Images\PXELinux\i386\templates\pxelinux.cfg\ create a file called "default" and give it the following contents: -----------...
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
..._check("ext4") || check_for_modules("ext4")); - if ((!test_fs || !ext4dev_present) && ext4_present) - return 0; - return 1; -} - static int ext3_image(const void *buf, unsigned long long *bytes) { const struct ext3_super_block *sb = @@ -496,7 +383,6 @@ static struct imagetype images[] = { {0, "romfs", romfs_image}, {0, "xfs", xfs_image}, {0, "squashfs", squashfs_image}, - {1, "ext4dev", ext4dev_image}, {1, "ext4", ext4_image}, {1, "ext3", ext3_image}, {1, "ext2", ext2_image},
2006 Dec 31
1
rimage package broken with fedora upgrade
...ext html latex example equalize text html latex example fftImg text html latex example fftw text html latex highpass text html latex example imageType text html latex example imagematrix text html latex example laplacian text html latex example logo text html latex example lowpass...