search for: ebr

Displaying 20 results from an estimated 37 matches for "ebr".

Did you mean: ebp
2019 Jan 21
0
[PATCH nbdkit v2 2/4] partition filter: Support MBR logical partitions.
...e) == 0xf || (byte) == 0x85) + struct mbr_partition { uint8_t part_type_byte; uint32_t start_sector; @@ -69,16 +75,16 @@ find_mbr_partition (struct nbdkit_next_ops *next_ops, void *nxdata, { int i; struct mbr_partition partition; + uint32_t ep_start_sector, ep_nr_sectors; + uint64_t ebr, next_ebr; + uint8_t sector[SECTOR_SIZE]; - if (partnum > 4) { - nbdkit_error ("MBR logical partitions are not supported"); - return -1; - } - + /* Primary partition. */ for (i = 0; i < 4; ++i) { get_mbr_partition (mbr, i, &partition); if (partition.nr_s...
2019 Jan 22
2
Re: [PATCH nbdkit v2 2/4] partition filter: Support MBR logical partitions.
...| 22 +++- > 3 files changed, 121 insertions(+), 11 deletions(-) > > @@ -69,16 +75,16 @@ find_mbr_partition (struct nbdkit_next_ops *next_ops, void *nxdata, > { > int i; > struct mbr_partition partition; > + uint32_t ep_start_sector, ep_nr_sectors; > + uint64_t ebr, next_ebr; > + uint8_t sector[SECTOR_SIZE]; > > - if (partnum > 4) { > - nbdkit_error ("MBR logical partitions are not supported"); > - return -1; > - } > - > + /* Primary partition. */ > for (i = 0; i < 4; ++i) { > get_mbr_partition...
2019 Jan 21
8
[PATCH nbdkit v2 0/4] Support MBR logical partitions.
...ttps://www.redhat.com/archives/libguestfs/2019-January/msg00137.html https://www.redhat.com/archives/libguestfs/2019-January/msg00139.html There have been many smaller changes but the highlights are: - Using SECTOR_SIZE instead of hard-coding 512 everywhere. - Additional safety checks that the EBR chain doesn't jump outside the disk. - The better test now writes different random data into each partition rather than the same string. - I pushed the pure refactoring changes. Rich.
2019 Jan 21
0
[PATCH nbdkit v2 1/4] partitioning plugin: Support MBR logical partitions.
...8a1..f59df70 100644 --- a/plugins/partitioning/virtual-disk.h +++ b/plugins/partitioning/virtual-disk.h @@ -104,7 +104,7 @@ extern struct file *files; extern size_t nr_files; extern struct regions regions; -extern unsigned char *primary, *secondary; +extern unsigned char *primary, *secondary, **ebr; /* Main entry point called after files array has been populated. */ extern int create_virtual_disk_layout (void); @@ -115,16 +115,16 @@ extern int create_virtual_disk_layout (void); extern int parse_guid (const char *str, char *out) __attribute__((__nonnull__ (1, 2))); -/* Internal funct...
2019 Jan 20
1
[PATCH nbdkit] partitioning: Support MBR logical partitions.
An evolution of the patch I posted yesterday to qemu-devel (https://www.mail-archive.com/qemu-devel@nongnu.org/msg588920.html) which (a) works and (b) has a test. Rich.
2019 Jan 22
7
[PATCH nbdkit v3 0/5] partition filter: Support MBR logical partitions.
I think this addresses everything in Eric's v2 review. Note that the first patch is best viewed using ‘-w’ to ignore whitespaces changes. Rich.
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...etty large: 2a) sanity checks - potential add/mul overflows are detected - partition related checks handled by notsane_{primary,logical,extended,gpt}() family of functions. They can be easily extended in the future. - additional checks in main pi_{gpt,dos}_next() functions and subfunctions 2b) EBR+MBR iterator merge They function now simply as 'dos' iterator (to keep naming consistent with disklib). Code is split into smaller functions, everything should look pretty logical. 2c) GPT iterator Core remained similar to previous version. Additional functionality includes: - extra sma...
2016 Dec 29
2
isohybrid boot from logical partition
Hi, i think i found the reason for the boot failure in the definition of Extended Boot Records. https://en.wikipedia.org/wiki/Extended_boot_record#Values "Starting sector = relative offset between this EBR sector and the first sector of the logical partition. Note: This is often the same value for each EBR on the same hard disk; usually 63 for Windows XP or older." So if GRUB hands the partition table entry of /dev/sdc5 over to the isohybrid MBR, then the isohybrid MBR code will see a...
2007 Jun 07
0
EBR Time.now display problem
As a new RoR user I need a little help please. I am using Mac OS X 10.4.9 and Ruby version 1.8.6 (powerpc-darwin8.8.0) RubyGems version 0.9.2 Rails version 1.2.3 Active Record version 1.15.3 Action Pack version 1.13.3 Action Web Service version 1.2.3 Action Mailer version 1.3.3 Active Support version 1.4.2 In one of my layouts I have the following: <p> This is a listing of all the
2006 Jul 26
1
mixing ebr and builder together and having it render as html in the browser
The first problem is that if you make a builder or .rxml file it always displays as xml in a browser. declare! it and the browser gives and error and if you change rxml to rhtml then it thinks you should be making erb. SO quetion #1 is how do I make builder files render in the browser as html. The next thing that I want to be able to do is be able to render parcials or call other files of other
2010 Jul 24
0
[PATCH] chain.c: allocation fixes
...;s attempt to free cur_part->record, which rarely comes from malloc. Only valid case is if gpt handover was performed and chaining was not successful (cur_part->record is overwritten with gpt specifc handover record). Freeing the handover area has been adjusted. 2) If our current iterator is ebr, parent wouldn't be freed at the end of main. Added generic function to free iterators, used by iterators themselves and in main. 3) Malloced areas from read sector and/or file should be freed as well. Signed-off-by: Michal Soltys <soltys at ziu.info> --- com32/modules/chain.c | 112 +...
2019 Jan 20
5
[PATCH nbdkit 0/4] partition: Support MBR logical partitions.
This implements support for MBR logical partitions in nbdkit-partition-filter, complementing existing support in the partitioning plugin. Rich.
2010 Jul 23
0
[PATCH] chain.c: gpt's index/private.index mismatch fix, cosmetic iterator changes
1) public index in gpt iterator should not skip empty partitions, e.g. if we have 1st and 3rd gpt entry used, we expect the numbers to be 1 and 3, not 1 and 2 (similary to how linux sees it e.g. /dev/sda1 and /dev/sda3). It's analogous to index / mbr_index fix. 2) free(ebr_part); in mbr iterator was not reachable. ebr iterator takes care of freeing itself and its parent. 3) in ebr iterator, error jump from "insane" partition error can simply go to err_ebr. Signed-off-by: Michal Soltys <soltys at ziu.info> --- com32/modules/chain.c | 10 ++--------...
2020 Apr 15
0
[PATCH nbdkit 4/9] common/regions: Use new vector type to store the list of regions.
...9783..4428ff17 100644 --- a/plugins/partitioning/virtual-disk.h +++ b/plugins/partitioning/virtual-disk.h @@ -91,7 +91,7 @@ struct file { extern struct file *files; extern size_t nr_files; -extern struct regions regions; +extern regions the_regions; extern unsigned char *primary, *secondary, **ebr; /* Main entry point called after files array has been populated. */ diff --git a/plugins/linuxdisk/partition-gpt.c b/plugins/linuxdisk/partition-gpt.c index 81a530d6..6380dc8f 100644 --- a/plugins/linuxdisk/partition-gpt.c +++ b/plugins/linuxdisk/partition-gpt.c @@ -197,7 +197,7 @@ create_gpt_p...
2016 Dec 29
0
isohybrid boot from logical partition
...everal years ago indicate that the relative start LBA of logical partitions is indeed a troublemaker between GRUB and SYSLINUX. --------------------------------------------------------------------- I created by help of fdisk this layout Device Boot Start End Sectors Size Id Type ebr_fdisk.img1 1 16 16 8K 83 Linux ebr_fdisk.img2 17 2047 2031 1015.5K 5 Extended ebr_fdisk.img5 64 192 129 64.5K 83 Linux ebr_fdisk.img6 200 264 65 32.5K 83 Linux Indeed the EBRs show relative block start addresses. At block 17...
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...int pi_ctor(struct part_iter *iter, - const struct disk_info *di, int flags -) -{ - memcpy(&iter->di, di, sizeof *di); - iter->flags = flags; - iter->index0 = -1; - iter->length = di->lbacnt; - - iter->type = typeraw; - return 0; -} - -/* pi_dos_ctor() - MBR/EBR iterator specific initialization */ -static int pi_dos_ctor(struct part_iter *iter, - const struct disk_info *di, int flags, - const struct disk_dos_mbr *mbr -) -{ - if (pi_ctor(iter, di, flags)) - return -1; - - if (!(iter->data = malloc(sizeof *mbr))) { - critm(); - goto bail; - } - -...
2015 May 08
1
Re: [PATCH 00/10] virt-resize: add support for resizing MBR logical partitions
...or resizing MBR >> logical partitions >> >> On Wed, Apr 29, 2015 at 09:19:24AM +0000, Chen, Hanxiao wrote: >>> commit 6e989fd709fea37430398cbb7c01c52cd44bd1ac already did this: >>> we had p_mbr_p_type : partition_type in type partition. >>> Like what MBR/EBR did, this patchset use `partition_type`: >>> >>> /dev/sda3: >>> partition data: 3 210763776-420478975 (209715200 bytes) >>> bootable: false >>> partition ID: 0x5 >>> content: extended partition >>> label: (none) >>> GUID:...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...int pi_ctor(struct part_iter *iter, - const struct disk_info *di, int flags -) -{ - memcpy(&iter->di, di, sizeof *di); - iter->flags = flags; - iter->index0 = -1; - iter->length = di->lbacnt; - - iter->type = typeraw; - return 0; -} - -/* pi_dos_ctor() - MBR/EBR iterator specific initialization */ -static int pi_dos_ctor(struct part_iter *iter, - const struct disk_info *di, int flags, - const struct disk_dos_mbr *mbr -) -{ - if (pi_ctor(iter, di, flags)) - return -1; - - if (!(iter->data = malloc(sizeof *mbr))) { - critm(); - goto bail; - } - -...
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to BPB adjustments, but not only that. It expects 3 small patches I sent earlier (they are included for easy reference, patches 1-3/4). The changes introduced are: 1) file and boot sector use separate options to control load address and jump address (if applicable). Options are as described below: *
2016 Dec 29
2
isohybrid boot from logical partition
Thomas Schmitt wrote: > Since we know that the isolinux.bin binary is well ok on other partitions, > i'd say that the MBR code does not load the right blocks from disk when > it wants to get isolinux.bin. Yes, these are my thoughts as well. I think the jump from GRUB to the isohybrid code on the logical partition is working fine, but when the isohybrid code is trying to jump to