Displaying 7 results from an estimated 7 matches for "bufz".
Did you mean:
buf
2014 Jun 22
0
[PATCH 5/6] utils/isohybrid.c: Change all fseek(3) to fseeko(3)
...fread(&descriptor, sizeof(char), sizeof(descriptor), fp) != sizeof(descriptor))
err(1, "%s: read error - 0", argv[0]);
- if (fseek(fp, 17 * 2048, SEEK_SET))
+ if (fseeko(fp, (off_t) 17 * 2048, SEEK_SET))
err(1, "%s: seek error - 1", argv[0]);
bufz = buf = calloc(BUFSIZE, sizeof(char));
@@ -935,7 +935,7 @@ main(int argc, char *argv[])
if (mode & VERBOSE)
printf("catalogue offset: %d\n", catoffset);
- if (fseek(fp, catoffset * 2048, SEEK_SET))
+ if (fseeko(fp, ((off_t) catoffset) * 2048, SEEK_SET))...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi,
following will be 6 patch proposals for isohybrid.c
1: Encode GPT partition names as UTF-16LE
2: Correct blocking factor in APM partition block counts
3: Correct end block address of first GPT partition
4: Write GPT backup to the very end of the image
5: Change all fseek(3) to fseeko(3)
6: Introduce option --mbr and make isohybrid.c compilable standalone
If the form needs adjustments,
2015 Feb 20
0
isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
>
> Same result as yours.
>
>
> Have a nice day :)
>
> Thomas
>
I was under the impression (apparently the wrong one) that your
pseudo-code was adding 4 cylinders to the first example, from 132 to
136, which would be non-optimal. Since I am not a developer, I believe
you when you say that such jump won't happen :). Perhaps the code will
be more clear to me
2014 May 12
4
[PATCH] isohybrid: fix overflow on 32 bit system
...,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
#include <sys/stat.h>
#include <inttypes.h>
#include <uuid/uuid.h>
@@ -888,7 +889,7 @@ main(int argc, char *argv[])
FILE *fp = NULL;
uint8_t *buf = NULL, *bufz = NULL;
int cylsize = 0, frac = 0;
- size_t orig_gpt_size, free_space, gpt_size;
+ size_t orig_gpt_size, free_space, gpt_size, real_offset;
struct iso_primary_descriptor descriptor;
prog = strcpy(alloca(strlen(argv[0]) + 1), argv[0]);
@@ -1125,9 +1126,16 @@ main(int argc, cha...
2015 Feb 20
2
isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
Hi,
my proposal is based on a mathematical proof (see mail
before) and yours is correct too. They cannot but match.
Let's inspect your examples:
Ady wrote:
> ISO size: 1'085'736'960 bytes ( > 1GiB)
This are exactly 132 cylinders of 255x63.
132 is divisible by 4. So there is no padding needed.
> Cylinders (1st attempt)=132
> [...]
> 2120580 / 4 = 530145, so
2015 Feb 20
4
isohybrid and ISO images whose size is not a multiple of 2048 bytes vs. VirtualBox
...------------------------------------------------------------------------
--- isohybrid.c 2015-02-20 10:43:49.000000000 +0100
+++ isohybrid_test.c 2015-02-20 11:01:33.000000000 +0100
@@ -947,7 +947,7 @@ main(int argc, char *argv[])
int i = 0;
FILE *fp = NULL;
uint8_t *buf = NULL, *bufz = NULL;
- int cylsize = 0, frac = 0;
+ int cylsize = 0, frac = 0, align_factor, align_cylsize;
size_t orig_gpt_size, free_space, gpt_size;
struct iso_primary_descriptor descriptor;
@@ -1058,9 +1058,20 @@ main(int argc, char *argv[])
isosize = lendian_int(descriptor.size) * le...
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...le_Free");
+ part->data_start = bendian_int(0);
+ part->data_count = bendian_int(efi_lba - start/2048 - 10);
+ part->status = bendian_int(0x01);
+ }
+}
+
int
main(int argc, char *argv[])
{
int i = 0;
FILE *fp = NULL;
- struct stat isostat;
uint8_t *buf = NULL, *bufz = NULL;
- int cylsize = 0, frac = 0, padding = 0;
+ int cylsize = 0, frac = 0;
+ size_t orig_gpt_size, free_space, gpt_size;
+ struct iso_primary_descriptor descriptor;
prog = strcpy(alloca(strlen(argv[0]) + 1), argv[0]);
i = check_option(argc, argv);
@@ -450,10 +855,21 @@ m...