Home
last modified time | relevance | path

Searched refs:partitions (Results 1 – 25 of 58) sorted by relevance

123

/external/gptfdisk/
Dbasicmbr.cc97 partitions[i] = orig.partitions[i]; in operator =()
164 partitions[i] = tempMBR.partitions[i]; in ReadMBRData()
165 if (partitions[i].GetLengthLBA() > 0) in ReadMBRData()
166 partitions[i].SetInclusion(PRIMARY); in ReadMBRData()
177 partitions[i].ReverseByteOrder(); in ReadMBRData()
197 if ((partitions[i].GetType() == 0x05) || (partitions[i].GetType() == 0x0f) in ReadMBRData()
198 || (partitions[i].GetType() == 0x85)) { in ReadMBRData()
200 logicalNum = ReadLogicalParts(partitions[i].GetStartLBA(), abs(logicalNum) + 1); in ReadMBRData()
217 if (partitions[i].GetType() == UINT8_C(0xEE)) { in ReadMBRData()
227 if ((partitions[i].GetType() != UINT8_C(0xEE)) && in ReadMBRData()
[all …]
Dmbr.cc59 partitions[0].SetStatus(0); // Flag the protective part. as unbootable in MakeProtectiveMBR()
61 partitions[0].SetType(UINT8_C(0xEE)); in MakeProtectiveMBR()
63 partitions[0].SetLocation(UINT32_C(1), (uint32_t) diskSize - UINT32_C(1)); in MakeProtectiveMBR()
65 partitions[0].SetLocation(UINT32_C(1), UINT32_MAX); in MakeProtectiveMBR()
67 partitions[0].SetInclusion(PRIMARY); in MakeProtectiveMBR()
79 if ((partitions[i].GetType() != 0xEE) && (partitions[i].GetType() != 0x00)) in OptimizeEESize()
81 if (partitions[i].GetType() == 0xEE) { in OptimizeEESize()
83 if (SectorUsedAs(partitions[i].GetStartLBA() - 1, 4) == NONE) { in OptimizeEESize()
84 partitions[i].SetStartLBA(FindFirstInFree(partitions[i].GetStartLBA() - 1)); in OptimizeEESize()
87 after = partitions[i].GetStartLBA() + partitions[i].GetLengthLBA(); in OptimizeEESize()
[all …]
Dbsd.cc36 partitions = NULL; in BSDData()
40 delete[] partitions; in ~BSDData()
136 partitions = new struct BSDRecord[numParts * sizeof(struct BSDRecord)]; in ReadBSDData()
137 if (partitions == NULL) { in ReadBSDData()
145 partitions[i].lengthLBA = tempRecords[i].lengthLBA; in ReadBSDData()
146 partitions[i].firstLBA = tempRecords[i].firstLBA; in ReadBSDData()
147 partitions[i].fsType = tempRecords[i].fsType; in ReadBSDData()
149 ReverseBytes(&partitions[i].lengthLBA, 4); in ReadBSDData()
150 ReverseBytes(&partitions[i].firstLBA, 4); in ReadBSDData()
157 if ((partitions[i].firstLBA == 0) && (partitions[i].lengthLBA > 0) in ReadBSDData()
[all …]
Dgpt.cc68 partitions = NULL; in GPTData()
92 partitions = NULL; in GPTData()
115 delete[] partitions; in ~GPTData()
143 delete[] partitions; in operator =()
144 partitions = new GPTPart [numParts]; in operator =()
145 if (partitions == NULL) { in operator =()
151 partitions[i] = orig.partitions[i]; in operator =()
320 if ((partitions[i].IsUsed()) && (partitions[i].GetFirstLBA() % sectorAlignment) != 0) { in Verify()
359 if (partitions[i].IsUsed()) { in CheckGPTSize()
360 if (partitions[i].GetFirstLBA() < firstUsedBlock) in CheckGPTSize()
[all …]
Dgptcurses.cc93 if (partitions[i].IsUsed()) { in MakeSpacesFromParts()
95 tempSpace->firstLBA = partitions[i].GetFirstLBA(); in MakeSpacesFromParts()
96 tempSpace->lastLBA = partitions[i].GetLastLBA(); in MakeSpacesFromParts()
97 tempSpace->origPart = &partitions[i]; in MakeSpacesFromParts()
328 printw("Partition GUID code: %s (%s)\n", partitions[partNum].GetType().AsString().c_str(), in ShowInfo()
329 partitions[partNum].GetTypeName().c_str()); in ShowInfo()
330 printw("Partition unique GUID: %s\n", partitions[partNum].GetUniqueGUID().AsString().c_str()); in ShowInfo()
331 printw("First sector: %lld (at %s)\n", partitions[partNum].GetFirstLBA(), in ShowInfo()
332 BytesToIeee(partitions[partNum].GetFirstLBA(), blockSize).c_str()); in ShowInfo()
333 printw("Last sector: %lld (at %s)\n", partitions[partNum].GetLastLBA(), in ShowInfo()
[all …]
Dgpttext.cc124 hexCode = partitions[partNum].GetHexType(); in XFormDisklabel()
190 while (partitions[firstFreePart].GetFirstLBA() != 0) { in CreatePartition()
206 if (partitions[partNum].GetFirstLBA() != 0) in CreatePartition()
208 } while (partitions[partNum].GetFirstLBA() != 0); in CreatePartition()
237 partitions[partNum].ChangeType(); in CreatePartition()
238 partitions[partNum].SetDefaultDescription(); in CreatePartition()
269 partitions[partNum].ChangeType(); in ChangePartType()
288 cout << "New GUID is " << partitions[partNum].GetUniqueGUID() << "\n"; in ChangeUniqueGuid()
299 partitions[partNum].SetAttributes(); in SetAttributes()
317 partitions[partNum].SetName(theName); in SetName()
[all …]
DREADME13 tool for manipulating partitions, but it does nothing to the contents of
14 those partitions (usually filesystems, but sometimes swap space or other
19 is a curses-based text-mode tool for manipulating partitions, which is to
32 various utilities. Specifically, it can fix mis-sized extended partitions
33 and primary partitions located in the middle of extended partitions. It
36 It does NOT support creating new partitions; for that, you should use
61 partitions, without losing data
78 access up to three GPT partitions on the disk (gdisk and sgdisk only)
101 Typically, the symptom is a disk that appears to hold no partitions;
102 however, sometimes the libparted tool presents partitions other than those
[all …]
DNEWS43 - Fixed bug that caused gdisk and sgdisk to create hybridized partitions
46 hybrid partitions that begin below 2^32 sectors and that are smaller than
49 misbehave with such partitions. AFAIK, only Linux, FreeBSD, and Windows 7
50 work properly with such partitions. Because of this fact and because
81 Environment (ONIE) boot and config partitions, respectively.
93 8302, for Linux /home partitions. This type code is used by recent
108 on sector 1: Previously, a disk with multiple 0xEE partitions would
110 0xEE partitions begins on sector 1.
114 hybridized partitions, gdisk would hang.
145 it prevents gaps from appearing between partitions if several are created
[all …]
Dbasicmbr.h34 struct MBRRecord partitions[4]; member
49 MBRPart partitions[MAX_MBR_PARTS]; variable
/external/toybox/toys/pending/
Dfdisk.c89 struct part_entry partitions[PARTITION_MAX]; variable
212 pe = &partitions[i]; in check_order()
241 q = p = partitions[idx].part; in read_ebr()
249 partitions[num_parts-1].modified = 1; in read_ebr()
254 partitions[num_parts].part = part_offset(sec_buf, 0); in read_ebr()
255 partitions[num_parts].sec_buffer = sec_buf; in read_ebr()
259 partitions[num_parts].start_offset = offset; in read_ebr()
303 struct part_entry *pe = &partitions[i]; in reset_boot()
323 for (; i < num_parts; i++) free(partitions[i].sec_buffer); in free_bufs()
335 partitions[0].modified = 1; in create_empty_doslabel()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java563 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_empty() local
564 assertTrue(partitions.isEmpty()); in testPartition_empty()
565 assertEquals(0, partitions.size()); in testPartition_empty()
570 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_1_1() local
571 assertEquals(1, partitions.size()); in testPartition_1_1()
572 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_1()
577 List<List<Integer>> partitions = Lists.partition(source, 2); in testPartition_1_2() local
578 assertEquals(1, partitions.size()); in testPartition_1_2()
579 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_2()
584 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_2_1() local
[all …]
DIteratorsTest.java703 Iterator<List<Integer>> partitions = Iterators.partition(source, 1); in testPartition_empty() local
704 assertFalse(partitions.hasNext()); in testPartition_empty()
709 Iterator<List<Integer>> partitions = Iterators.partition(source, 1); in testPartition_singleton1() local
710 assertTrue(partitions.hasNext()); in testPartition_singleton1()
711 assertTrue(partitions.hasNext()); in testPartition_singleton1()
712 assertEquals(ImmutableList.of(1), partitions.next()); in testPartition_singleton1()
713 assertFalse(partitions.hasNext()); in testPartition_singleton1()
718 Iterator<List<Integer>> partitions = Iterators.partition(source, 2); in testPartition_singleton2() local
719 assertTrue(partitions.hasNext()); in testPartition_singleton2()
720 assertTrue(partitions.hasNext()); in testPartition_singleton2()
[all …]
DIterablesTest.java392 Iterable<List<Integer>> partitions = Iterables.partition(source, 1);
393 assertTrue(Iterables.isEmpty(partitions));
398 Iterable<List<Integer>> partitions = Iterables.partition(source, 1);
399 assertEquals(1, Iterables.size(partitions));
400 assertEquals(Collections.singletonList(1), partitions.iterator().next());
405 Iterable<List<Integer>> partitions = Iterables.partition(list, 2);
410 Iterator<List<Integer>> iterator = partitions.iterator();
425 Iterable<List<Integer>> partitions = Iterables.paddedPartition(list, 2);
426 assertEquals(3, Iterables.size(partitions));
427 assertEquals(asList(5, null), Iterables.getLast(partitions));
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java808 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_empty() local
809 assertTrue(partitions.isEmpty()); in testPartition_empty()
810 assertEquals(0, partitions.size()); in testPartition_empty()
815 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_1_1() local
816 assertEquals(1, partitions.size()); in testPartition_1_1()
817 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_1()
822 List<List<Integer>> partitions = Lists.partition(source, 2); in testPartition_1_2() local
823 assertEquals(1, partitions.size()); in testPartition_1_2()
824 assertEquals(Collections.singletonList(1), partitions.get(0)); in testPartition_1_2()
829 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_2_1() local
[all …]
DIteratorsTest.java887 Iterator<List<Integer>> partitions = Iterators.partition(source, 1); in testPartition_empty() local
888 assertFalse(partitions.hasNext()); in testPartition_empty()
893 Iterator<List<Integer>> partitions = Iterators.partition(source, 1); in testPartition_singleton1() local
894 assertTrue(partitions.hasNext()); in testPartition_singleton1()
895 assertTrue(partitions.hasNext()); in testPartition_singleton1()
896 assertEquals(ImmutableList.of(1), partitions.next()); in testPartition_singleton1()
897 assertFalse(partitions.hasNext()); in testPartition_singleton1()
902 Iterator<List<Integer>> partitions = Iterators.partition(source, 2); in testPartition_singleton2() local
903 assertTrue(partitions.hasNext()); in testPartition_singleton2()
904 assertTrue(partitions.hasNext()); in testPartition_singleton2()
[all …]
DIterablesTest.java429 Iterable<List<Integer>> partitions = Iterables.partition(source, 1);
430 assertTrue(Iterables.isEmpty(partitions));
435 Iterable<List<Integer>> partitions = Iterables.partition(source, 1);
436 assertEquals(1, Iterables.size(partitions));
437 assertEquals(Collections.singletonList(1), partitions.iterator().next());
442 Iterable<List<Integer>> partitions = Iterables.partition(list, 2);
447 Iterator<List<Integer>> iterator = partitions.iterator();
464 Iterable<List<Integer>> partitions = Iterables.partition(source, 2);
465 Iterator<List<Integer>> iterator = partitions.iterator();
474 Iterable<List<Integer>> partitions = Iterables.partition(source, 2);
[all …]
/external/tremolo/Tremolo/
Dres012.c69 info->partitions=(char)(oggpack_read(opb,6)+1); in res_unpack()
73 info->stagemasks=_ogg_malloc(info->partitions*sizeof(*info->stagemasks)); in res_unpack()
74 info->stagebooks=_ogg_malloc(info->partitions*8*sizeof(*info->stagebooks)); in res_unpack()
76 for(j=0;j<info->partitions;j++){ in res_unpack()
83 for(j=0;j<info->partitions;j++){ in res_unpack()
142 partword[0][i+k]=partword[0][i+k+1]*info->partitions; in res_inverse()
168 if(idx < info->partitions && info->stagemasks[idx]&(1<<s)){ in res_inverse()
211 partword[i+k]=partword[i+k+1]*info->partitions; in res_inverse()
Dfloor1.c113 info->partitions=oggpack_read(opb,5); /* only 0 to 31 legal */ in floor1_info_unpack()
115 (char *)_ogg_malloc(info->partitions*sizeof(*info->partitionclass)); in floor1_info_unpack()
116 for(j=0;j<info->partitions;j++){ in floor1_info_unpack()
144 for(j=0,k=0;j<info->partitions;j++) in floor1_info_unpack()
156 for(j=0,k=0;j<info->partitions;j++){ in floor1_info_unpack()
305 for(i=0,j=2;i<info->partitions;i++){ in floor1_inverse1()
Dcodec_internal.h123 int partitions; /* 0 to 31 */ member
142 char partitions; /* possible codebooks for a partition */ member
/external/flac/libFLAC/ia32/
Dstream_encoder_asm.nasm75 ;; [esp] partitions
81 mov [esp], eax ; [esp] <- partitions = 1u << max_partition_order;
97 .loop0: ; for(partition = residual_sample = 0; partition < partitions; partition++) {
119 ; now merge partitions for lower orders
123 lea edi, [esi + eax * 8] ; edi <- abs_residual_partition_sums[to_partition==partitions];
131 shl edx, cl ; const unsigned partitions = 1u << partition_order;
133 .loop3: ; for(i = 0; i < partitions; i++) {
/external/e2fsprogs/lib/ext2fs/
Ddosio.c47 static PARTITION **partitions = NULL; variable
220 if(!strcmp(partitions[i]->dev, dev)) in dos_open()
223 active = partitions[i]; in dos_open()
338 newparts = (PARTITION**)realloc(partitions, sizeof(PARTITION) * npart); in dos_open()
343 partitions = newparts; in dos_open()
344 partitions[npart++] = active = part; in dos_open()
/external/eigen/bench/
Dcheck_cache_queries.cpp66 int partitions = (abcd[1] & 0x003FF000) >> 12; // B[21:12] in main() local
69 int cache_size = (ways+1) * (partitions+1) * (line_size+1) * (sets+1); in main()
74 cout << "cache[" << cache_id << "].partitions = " << partitions << "\n"; in main()
/external/webp/src/enc/
Dconfig.c35 config->partitions = 0; in WebPConfigInitInternal()
120 if (config->partitions < 0 || config->partitions > 3) in WebPValidateConfig()
/external/libvorbis/lib/
Dbackends.h62 int partitions; /* 0 to 31 */ member
111 int partitions; /* possible codebooks for a partition */ member
Dres0.c182 oggpack_write(opb,info->partitions-1,6); /* possible partition choices */ in res0_pack()
188 for(j=0;j<info->partitions;j++){ in res0_pack()
212 info->partitions=oggpack_read(opb,6)+1; in res0_unpack()
218 for(j=0;j<info->partitions;j++){ in res0_unpack()
254 partvals *= info->partitions; in res0_unpack()
278 look->parts=info->partitions; in res0_look()
421 int possible_partitions=info->partitions; in _01class()
488 int possible_partitions=info->partitions; in _2class()
552 int possible_partitions=info->partitions; in _01forward()

123