Home
last modified time | relevance | path

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

1234

/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 …]
/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/chromium-trace/catapult/devil/devil/android/
Dfastboot_utils.py150 def _FindAndVerifyPartitionsAndImages(self, partitions, directory): argument
173 for name in partitions}
175 def _FlashPartitions(self, partitions, directory, wipe=False, force=False): argument
200 flash_image_files = self._FindAndVerifyPartitionsAndImages(partitions,
202 for partition in partitions:
230 def FlashDevice(self, directory, partitions=None, wipe=False): argument
243 if partitions is None:
244 partitions = ALL_PARTITIONS
246 self._FlashPartitions(partitions, directory, wipe=wipe)
/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 …]
/external/autotest/client/bin/
Dpartition.py144 partitions = []
173 partitions.append(partition(job, device))
175 return partitions
196 def filter_partition_list(partitions, devnames): argument
213 for p in partitions:
238 partitions = get_partition_list(job=job, min_blocks=min_blocks,
242 for part in partitions:
250 def parallel(partitions, method_name, *args, **dargs): argument
255 if not partitions:
257 job = partitions[0].job
[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()
228 if(partword[i] >= 0 && partword[i] < info->partitions && in res_inverse()
Dfloor1.c113 info->partitions=oggpack_read(opb,5); /* only 0 to 31 legal */ in floor1_info_unpack()
115 (ogg_uint8_t *)_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()
/external/autotest/client/site_tests/platform_PartitionCheck/
Dplatform_PartitionCheck.py73 partitions = ['mmcblk0p3', 'mmcblk0p5']
76 partitions = ['sda3', 'sda5']
80 for p in partitions:
/external/autotest/client/samples/
Dcontrol.fs11 creating loopback partitions instead of using real disk partitions, looping.
15 # You can use also 'real' partitions, just comment the above and uncomment
Dcontrol.fs_options10 features of the job.partition method, such as creating loopback partitions
11 instead of using real disk partitions, looping and tags.
16 # You can use also 'real' partitions, just comment the above and uncomment
/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/opencv3/3rdparty/libwebp/enc/
Dconfig.c39 config->partitions = 0; in WebPConfigInitInternal()
116 if (config->partitions < 0 || config->partitions > 3) in WebPValidateConfig()
/external/webp/src/enc/
Dconfig.c35 config->partitions = 0; in WebPConfigInitInternal()
121 if (config->partitions < 0 || config->partitions > 3) in WebPValidateConfig()

1234