search for: start_lba

Displaying 16 results from an estimated 16 matches for "start_lba".

2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...2e) available data at any time - disk guid or disk signature (sub.gpt.disk_guid or sub.dos_disk_sig) - parition guid (sub.gpt.part_guid) - parition label, asciiz (sub.gpt.part_label) - pointer to record holding unaltered partition entry (record) - iterator type (type) - lba beginning of partition (start_lba) - disk (0) / partition (1+) index (index) See partiter.h for details. 2f) pi_begin() It does sanity checks - including gpt's primary+backup+array crc checks - and allocates proper iterator. Some additional checks (mbr protective id, gpt revision, general sanity) are also performed. 2g) oth...
2012 Nov 06
50
chain.c32 (and partiter) updates v2
...ling of non-standard hybrid GPT+MBR layouts com32/chain: recognize exFAT com32/chain: remove common.h com32/chain: rely more on addr_t, replace ADDR* com32/chain: index -1 partiter adjustment com32/chain: manglepe_fixchs() correction com32/chain: partiter: rename start_lba com32/chain: use single value for partiter related options (flags) com32/chain/Makefile | 6 +- com32/chain/chain.c | 139 ++++++----- com32/chain/chain.h | 15 ++ com32/chain/common.h | 9 - com32/chain/mangle.c | 207 +++++++++++------ com32/chain/mangle.h | 30 +...
2010 Jul 24
0
[PATCH] chain.c: allocation fixes
...Synthesize the record */ - memset(record, 0, synth_size); - record->active_flag = 0x80; - record->ostype = 0xED; + memset(hand_area, 0, synth_size); + hand_area->active_flag = 0x80; + hand_area->ostype = 0xED; /* All bits set by default */ - record->start_lba = ~(uint32_t) 0; - record->length = ~(uint32_t) 0; + hand_area->start_lba = ~(uint32_t) 0; + hand_area->length = ~(uint32_t) 0; /* If these fit the precision, pass them on */ - if (cur_part->lba_data < record->start_lba) - record->start_lba = cur_part-&gt...
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...- - dp = ((struct disk_dos_mbr *)iter->data)->table; - - if (!dp[0].ostype) - return 0; - - if (ost_is_ext(dp[0].ostype)) { - error("The 1st EBR entry must be data or empty."); - return -1; - } - - if (iter->flags & PIF_RELAX) - return 0; - - end_log = dp[0].start_lba + dp[0].length; - - if (!dp[0].start_lba || - !dp[0].length || - !sane(dp[0].start_lba, dp[0].length) || - end_log > iter->dos.nebr_siz) { - - error("Logical partition (in EBR) with invalid offset and/or length."); - return -1; - } - - return 0; -} - -/* Extended partition...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...dp = ((struct disk_dos_mbr *)iter->data)->table; - - if (!dp[0].ostype) - return 0; - - if (ost_is_ext(dp[0].ostype)) { - error("The 1st EBR entry must be data or empty."); - return -1; - } - - if (!(iter->flags & PIF_STRICT)) - return 0; - - end_log = dp[0].start_lba + dp[0].length; - - if (!dp[0].start_lba || - !dp[0].length || - !sane(dp[0].start_lba, dp[0].length) || - end_log > iter->dos.nebr_siz) { - - error("Logical partition (in EBR) with invalid offset and/or length."); - return -1; - } - - return 0; -} - -/* Extended partition...
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: *
2007 Apr 05
0
Patch: Add io.c functions, and vfat library
...k_info; part_entry* partition; } filedesc; static filedesc rFd; static int fat_disk_read_handle(intptr_t fdp, void* buf, size_t nbyte, libfat_sector_t sector) { filedesc* fd = (filedesc*) fdp; int num_sectors = nbyte / LIBFAT_SECTOR_SIZE; int status; sector += fd->partition->start_lba; status = syslinux_read_disk(fd->disk_info, buf, sector, num_sectors); return (status) ? 0 : nbyte; } and in some function like main(): /* Get the disk geometry (not needed for MBR) */ if ( syslinux_get_disk_params(drive, &disk_info) ) { error("Cannot get disk param...
2010 Jul 23
0
[PATCH] chain.c: gpt's index/private.index mismatch fix, cosmetic iterator changes
...hanged, 2 insertions(+), 8 deletions(-) diff --git a/com32/modules/chain.c b/com32/modules/chain.c index 91db9f7..b5c1d8f 100644 --- a/com32/modules/chain.c +++ b/com32/modules/chain.c @@ -558,7 +558,7 @@ static struct disk_part_iter *next_ebr_part(struct disk_part_iter *part) if (ebr_table[0].start_lba >= extended->start_lba + extended->length) { dprintf("Insane logical partition!\n"); - goto err_insane; + goto err_ebr; } } /* Success */ @@ -568,12 +568,7 @@ static struct disk_part_iter *next_ebr_part(struct disk_part_iter *part) part->record =...
2010 Jul 30
4
chain.c: fix v2 for public indexes in iterators (for master and disklib)
>From the earlier patches - that simple fix for indexes not counting non-data partitions in gpt and mbr cases. Patches don't touch any other parts of the code at this stage - bigger stuff later for disklib as we agreed - but this is potentially useful right now. Michal Soltys (1): chain.c: fix public index value in mbr and gpt iterators
2012 Aug 01
0
chain module updates
...264a21eedd6c: Correct initialization of the cache doubly-linked list (2012-07-19 07:29:55 -0700) are available in the git repository at: git://git.hasevolq.net/syslinux.git chain_update for you to fetch changes up to 41696e836bae5886527a484d774b2cfe5fa6b843: com32/chain: partiter: rename start_lba (2012-08-01 00:25:54 +0200) ---------------------------------------------------------------- Michal Soltys (23): utils/isohybrid: use ULL suffix in 64bit constants com32/chain: update licenses com32/chain: comments, minor adjustments com32/chain: use anonymous and unnamed a...
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not
2014 Jun 29
10
[PATCH 0/6] chain.c32 patches
This small set fixes few bugs, improves gpt handling (under buggy conditions) and implements strict flag with more fine grained control which should fix issues with sanity checks against disk sizes. If this set is allright I'd want to do what I mentioned in older discussion with Ady - backport missing patches from 6.x to 5.x and 4.x so all versions have up to date chain version. Michal
2007 Oct 17
3
Adding a "boot from local hard disk" option to syslinux menu, booted from USB
...ead the boot sector */ /* Pick the first buffer that isn't already in use */ boot_sector = (char *)(((unsigned long)partinfo + 511) & ~511); sprintf(logs, "partinfo: active_flag %d, start_head %d, start_sect %d, start_cyl %d, ostype %d, end_head %d, end_sect %d, end_cyl %d, start_lba %d, length %d, boot_sector %s\n", partinfo->active_flag, partinfo->start_head, partinfo->start_sect, partinfo->start_cyl, partinfo->ostype, partinfo->end_head, partinfo->end_sect, partinfo->end_cyl, partinfo->start_lba, partinfo->length, boot_sector); printf(l...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address
2013 Jan 07
2
chain.c32 bug
i`ve found a bug in chain.c32 in v4.06. When i use isolinux it does not run windows7 installation, chainloading bootmgr. the error is: Can't find myself on the drive I booted from. chain.c32 from syslinux 3.xx works like a charm! chain.c32 from syslinux 5 shous tat this is not a com32 app
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
..., - chs_sector(part->start), - chs_sector(part->start), - part->ostype, - chs_cylinder(part->end), - chs_cylinder(part->end), - chs_head(part->end), - chs_head(part->end), - chs_sector(part->end), - chs_sector(part->end), - part->start_lba, part->start_lba, part->length, part->length); -} - -/* Trivial error message output */ -static inline void error(const char *msg) -{ - fputs(msg, stderr); -} - -/** - * This walk-map effectively reverses the little-endian - * portions of a GPT disk/partition GUID for a string represent...