search for: numsect

Displaying 9 results from an estimated 9 matches for "numsect".

Did you mean: num_sect
2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
...a coff_section ? ] While I'm puzzling over that, I look some more, and I see: error_code getSection(int32_t index, const coff_section *&Res) const; Cool. (A bit weird; why a signed index?, but whatever) So I write: const llvm::object::coff_section *sect; for (std::size_t i = 0; i < NumSections; ++i) Obj.getSection(i, sect); And my program dies with a segmentation fault. Turns out that sect == NULL. More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 Now I'm really really confused. Why? BTW - patch attached to add pre-increment to llvm::content_iterator...
2004 Feb 14
0
Memdisk/floppy image question
...and copies its contents over and sets up the bootsector of the newimage appropriately. ---- SCRIPT STARTS ----- #!/bin/bash NEWIMAGE=dosimage.img OLDIMAGE=oldimage.img # Name of an existing dos image SIZEMB=8 MKDOSFS=mkdosfs # binary for mkdosfs SIZEKB=`echo "$SIZEMB 1024 * p" | dc` NUMSECT=`echo "$SIZEKB 2 * p" | dc` MNTNEW=`mktemp -d /tmp/mntptnew.XXXXXX` # Create a mountpoint MNTOLD=`mktemp -d /tmp/mntptold.XXXXXX` # Name of an existing mountpoint # Create the filesystem OUTLINE=`$MKDOSFS -v -C $NEWIMAGE $SIZEKB | grep heads` HEADS=`echo $OUTLINE | cut -f3 -d' '`...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...t, I look some more, and I see: > error_code getSection(int32_t index, const coff_section *&Res) > const; > > Cool. (A bit weird; why a signed index?, but whatever) > So I write: > const llvm::object::coff_section *sect; > for (std::size_t i = 0; i < NumSections; ++i) > Obj.getSection(i, sect); > > And my program dies with a segmentation fault. > Turns out that sect == NULL. > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 > > Now I'm really really confused. Why? > > BTW - patch at...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...r that, I look some more, and I see: >        error_code getSection(int32_t index, const coff_section *&Res) const; > > Cool. (A bit weird; why a signed index?, but whatever) > So I write: >        const llvm::object::coff_section *sect; >        for (std::size_t i = 0; i < NumSections; ++i) >                Obj.getSection(i, sect); > > And my program dies with a segmentation fault. > Turns out that sect == NULL. > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 > > Now I'm really really confused.  Why? This is because that is...
2008 Aug 22
2
zpool autoexpand property - HowTo question
I noted this PSARC thread with interest: Re: zpool autoexpand property [PSARC/2008/353 Self Review] because it so happens that during a recent disk upgrade, on a laptop. I''ve migrated a zpool off of one partition onto a slightly larger one, and I''d like to somehow tell zfs to grow the zpool to fill the new partition. So, what''s the best way to do this? (and is it
2008 Sep 29
1
B98 Solaris DomU on B98 Solaris Dom0 - installer not finding disks
...drive. I can not continue past this screen. I have verified the virtual drive exists. (dom1) pfexec fdisk -W - /dev/rdsk/c3d0p0 * Dimensions: * 512 bytes/sector * 63 sectors/track * 255 tracks/cylinder * 1305 cylinders * Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect Numsect 191 128 0 1 1 254 63 1023 16065 20948760 I am able to create, import, export, and destroy zpools on that drive. I did make sure I destroyed any pool named "rpool" before starting the installer. Is there something I''m missing? I''ve cr...
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...: > > error_code getSection(int32_t index, const coff_section *&Res) > const; > > > > Cool. (A bit weird; why a signed index?, but whatever) > > So I write: > > const llvm::object::coff_section *sect; > > for (std::size_t i = 0; i < NumSections; ++i) > > Obj.getSection(i, sect); > > > > And my program dies with a segmentation fault. > > Turns out that sect == NULL. > > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 > > > > Now I'm really really confu...
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...6 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device) /* ASSERT(netDevice->ReceiveSectionCount == 0); */ /* ASSERT(netDevice->ReceiveSections == NULL); */ - netDevice->ReceiveSectionCount = initPacket->Messages.Version1Messages.SendReceiveBufferComplete.NumSections; + net_device->ReceiveSectionCount = init_packet->Messages. + Version1Messages.SendReceiveBufferComplete.NumSections; - netDevice->ReceiveSections = kmalloc(netDevice->ReceiveSectionCount * sizeof(struct nvsp_1_receive_buffer_section), GFP_KERNEL); - if (netDevice->ReceiveSect...
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...6 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device) /* ASSERT(netDevice->ReceiveSectionCount == 0); */ /* ASSERT(netDevice->ReceiveSections == NULL); */ - netDevice->ReceiveSectionCount = initPacket->Messages.Version1Messages.SendReceiveBufferComplete.NumSections; + net_device->ReceiveSectionCount = init_packet->Messages. + Version1Messages.SendReceiveBufferComplete.NumSections; - netDevice->ReceiveSections = kmalloc(netDevice->ReceiveSectionCount * sizeof(struct nvsp_1_receive_buffer_section), GFP_KERNEL); - if (netDevice->ReceiveSect...