Home
last modified time | relevance | path

Searched refs:partition (Results 1 – 25 of 221) sorted by relevance

123456789

/external/autotest/client/bin/
Dpartition_unittest.py11 from autotest_lib.client.bin import partition
16 self.assertRaises(ValueError, partition.FsOptions, '', '', '', '')
17 self.assertRaises(ValueError, partition.FsOptions, 'ext2', '', '', '')
18 obj = partition.FsOptions('ext2', 'ext2_vanilla', '', '')
19 obj = partition.FsOptions(fstype='ext2', fs_tag='ext2_vanilla')
20 obj = partition.FsOptions('fs', 'shortie', 'mkfs opts', 'mount opts')
28 str_obj = str(partition.FsOptions('abc', 'def', 'ghi', 'jkl'))
80 self.assertFalse(partition.is_linux_fs_type('/dev/hdc1'))
81 self.assertFalse(partition.is_linux_fs_type('/dev/hdc2'))
82 self.assertTrue(partition.is_linux_fs_type('/dev/hdc3'))
[all …]
/external/autotest/server/site_tests/brillo_RecoverFromBadImage/
Dbrillo_RecoverFromBadImage.py25 def resolve_slot(self, host, partition): argument
39 if not re.match('.+_[a-zX]$', partition):
40 return partition, None
45 if partition[-1] == 'X':
53 partition = partition[:-1] + chr(ord('a') + target_slot)
56 '(slot %d)', current_slot, partition, target_slot)
59 target_slot = ord(partition[-1]) - ord('a')
65 partition, current_slot)
69 return partition, target_slot
72 def find_partition_device(self, host, partition): argument
[all …]
/external/autotest/client/samples/
Dcontrol.fs9 Runs a series of filesystem tests on a loopback partition using different
10 filesystem types. his shows some features of the job.partition method, such as
14 partition = job.partition('/tmp/looped', 1024, job.tmpdir)
17 #partition = job.partition('/dev/sdb1', job.tmpdir)
20 partition.mkfs(fstype)
21 partition.mount()
23 job.run_test('fsx', dir=partition.mountpoint, tag=fstype)
24 job.run_test('iozone', dir=partition.mountpoint, tag=fstype)
25 job.run_test('dbench', dir=partition.mountpoint, tag=fstype)
27 partition.unmount()
[all …]
Dcontrol.fs_options9 Runs a series of filesystem tests on a loopback partition. This shows some
10 features of the job.partition method, such as creating loopback partitions
14 partition = job.partition(device='/tmp/looped', loop_size=1024,
18 #partition = job.partition('/dev/sdb1', job.tmpdir)
28 partition.mkfs(fstype)
29 partition.mount(args=mountopts)
36 partition.unmount()
Dcontrol.patch_verify14 partition = job.partition('/tmp/looped', 1024, job.tmpdir)
17 #partition = job.partition('/dev/sdb1', job.tmpdir)
19 job.run_test('parallel_dd', fs=partition, fs_type='ext4', iterations=1,
/external/vboot_reference/cgpt/
Dcgpt_add.c20 snprintf(tmp, sizeof(tmp), "-i %d ", params->partition); in DumpCgptAddParams()
151 if (params->partition) { in CgptGetUnusedPartition()
152 if (params->partition > max_part) { in CgptGetUnusedPartition()
153 Error("invalid partition number: %d\n", params->partition); in CgptGetUnusedPartition()
156 *index = params->partition - 1; in CgptGetUnusedPartition()
162 params->partition = i + 1; in CgptGetUnusedPartition()
186 if (params->partition == 0 || in CgptSetAttributes()
187 params->partition >= GetNumberOfEntries(&drive)) { in CgptSetAttributes()
188 Error("invalid partition number: %d\n", params->partition); in CgptSetAttributes()
192 SetEntryAttributes(&drive, params->partition - 1, params); in CgptSetAttributes()
[all …]
Dcgpt_boot.c49 params->partition = i + 1; in CgptGetBootPartitionNumber()
56 params->partition = 0; in CgptGetBootPartitionNumber()
74 if (params->create_pmbr || params->partition || params->bootfile) in CgptBoot()
107 if (params->partition) { in CgptBoot()
114 if (params->partition > GetNumberOfEntries(&drive)) { in CgptBoot()
115 Error("invalid partition number: %d\n", params->partition); in CgptBoot()
119 uint32_t index = params->partition - 1; in CgptBoot()
/external/gptfdisk/
DNEWS8 - Added new partition type codes for Ceph
18 - Added new partition type codes from
29 -t/--typecode, and -u/--partition-guid commands: If a -n/--new option
30 with "0" as the partition number precedes these options on the command
31 line, passin "0" as the partition number to the following options causes
32 them to use the newly-created partition. For instance, "sgdisk -n
33 0:0:+550M -t 0:EF00 /dev/sda" creates a new partition with a type code of
36 - Fixed bug that caused incorrect partition number to be displayed by
37 sgdisk in error messages when the user specified a non-existent partition
41 hybridized partition when creating a hybrid MBR.
[all …]
DREADME34 also enables changing primary vs. logical partition status (within limits
82 can't resize a partition's filesystem or create a partition with a
97 forums from users who have found their partition tables to be corrupted by
117 * Mis-sized extended partitions -- Some tools create an extended partition
120 to save the partition table).
122 * Primary partitions inside an extended partition -- Some utilities create
124 partition. FixParts can usually correct this problem by turning the
125 primary partition into a logical partition or by changing one or more
137 partition types (primary, logical, or omitted), change type codes, change
138 the bootable flag, and so on. Although you can delete a partition (by
[all …]
Dcurrent.spec29 manipulation of partition table structures, recovery
30 tools to help you deal with corrupt partition tables,
73 and enables changing primary vs. logical partition status. Also
74 provides a few additional partition manipulation features.
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
Dpartition.pass.cpp38 Iter r = std::partition(Iter(ia), Iter(ia + sa), is_odd()); in test()
45 r = std::partition(Iter(ia), Iter(ia), is_odd()); in test()
50 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
55 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
61 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
71 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
81 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
91 r = std::partition(Iter(ia), Iter(ia+sa), is_odd()); in test()
/external/chromium-trace/catapult/devil/devil/android/
Dfastboot_utils.py202 for partition in partitions:
203 if partition in ['cache', 'userdata'] and not wipe:
205 'Not flashing in wipe mode. Skipping partition %s.', partition)
208 'Flashing %s with %s', partition, flash_image_files[partition])
209 self.fastboot.Flash(partition, flash_image_files[partition])
210 if partition in self._RESTART_WHEN_FLASHING:
/external/toybox/toys/pending/
Dfdisk.c51 struct partition { struct
57 struct partition *part; argument
91 static struct partition* part_offset(char *secbuf, int i) in part_offset()
93 return (struct partition*)(secbuf + 0x1be + i*(sizeof(struct partition))); in part_offset()
102 static void set_hsc(struct partition *p, sector_t start, sector_t end) in set_hsc()
186 static int is_partition_clear(struct partition* p) in is_partition_clear()
192 for (i = 0; i < sizeof(struct partition); i++) res |= (unsigned char)ptr[i]; in is_partition_clear()
208 struct partition *px; in check_order()
239 struct partition *p, *q; in read_ebr()
248 memset(q, 0, sizeof(struct partition)); //clear_partition in read_ebr()
[all …]
/external/kernel-headers/original/uapi/linux/
Dfsl_hypervisor.h55 __u32 partition; member
75 __u32 partition; member
90 __u32 partition; member
105 __u32 partition; member
/external/autotest/client/tests/xfstests/
Dcontrol53 * As a convenience the default config file uses a virtual partition, so people
55 virtual partition depends on the following programs to be available:
63 # Here, by default we use the concept of virtual partition (a partition of 1GB
66 from autotest_lib.client.bin import partition
68 vp = partition.virtual_partition(file_img=file_img, file_size=1024*1024)
78 p = job.partition(device=device, mountpoint=mountpoint)
140 # It is good practice to unmount the partition created
142 # If you are using the virtual partition, you may destroy it here
/external/autotest/server/site_tests/platform_CompromisedStatefulPartition/
Dcontrol9 PURPOSE = "Compromised stateful partition test."
10 CRITERIA = "This test will fail if unable to get OOBE with corrupted stateful partition."
22 corrupted stateful partition.
26 -Did not get OOBE after rebooting the device with corrupted stateful partition.
/external/vboot_reference/host/include/
Dcgpt_params.h26 uint32_t partition; member
52 uint32_t partition; member
67 uint32_t partition; member
/external/autotest/client/site_tests/platform_RootPartitionsNotMounted/
Dplatform_RootPartitionsNotMounted.py117 for partition in root_partitions:
118 if partition in mounted_devices:
121 % (partition, process, process_exe))
/external/libvorbis/doc/
D08-residue.tex34 coding structure, ignoring for the moment exactly how a partition is
40 \emph{n}, a partition size \emph{residue_partition_size}, and a total
46 \item Each partition in each vector has a classification number that
48 decode that partition. The classification numbers of each partition
64 a partition is the same in each pass, thus the classification codeword
80 partition are interleaved during partition encoding (visually treated
84 dimension of the codebook used to encode a partition in a specific
86 passes, however the partition size must be an even multiple of the
89 As an example, assume a partition vector of size eight, to be encoded
113 Residue 1 does not interleave VQ encoding. It represents partition
[all …]
/external/autotest/client/site_tests/hardware_Badblocks/
Dcontrol7 PURPOSE = 'Check for unusable blocks in unmounted partition in SSD storage.'
12 This test checks for unusable blocks in an unmounted partition of SSD by
Dcontrol.storagequal7 PURPOSE = 'Check for unusable blocks in unmounted partition in SSD storage.'
14 This test checks for unusable blocks in an unmounted partition of SSD by
Dcontrol.hwqual7 PURPOSE = 'Check for unusable blocks in unmounted partition in SSD storage.'
14 This test checks for unusable blocks in an unmounted partition of SSD by
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java555 Lists.partition(source, 0); in testPartition_badSize()
563 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_empty()
570 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_1_1()
577 List<List<Integer>> partitions = Lists.partition(source, 2); in testPartition_1_2()
584 List<List<Integer>> partitions = Lists.partition(source, 1); in testPartition_2_1()
592 List<List<Integer>> partitions = Lists.partition(source, 2); in testPartition_3_2()
600 List<List<Integer>> partitions = Lists.partition(source, 2); in testPartitionRandomAccessFalse()
610 List<List<Integer>> partitions = Lists.partition(list, 3); in testPartition_view()
634 assertEquals(1, Lists.partition(list, Integer.MAX_VALUE).size()); in testPartitionSize_1()
635 assertEquals(1, Lists.partition(list, Integer.MAX_VALUE - 1).size()); in testPartitionSize_1()
/external/mmc-utils/
Dmmc_cmds.c672 int partition, enh_attr, ext_attr; in do_create_gp_partition() local
683 partition = strtol(argv[3], NULL, 10); in do_create_gp_partition()
688 if (partition < 0 || partition > 4) { in do_create_gp_partition()
728 address = EXT_CSD_GP_SIZE_MULT_1_2 + (partition - 1) * 3; in do_create_gp_partition()
736 address = EXT_CSD_GP_SIZE_MULT_1_1 + (partition - 1) * 3; in do_create_gp_partition()
744 address = EXT_CSD_GP_SIZE_MULT_1_0 + (partition - 1) * 3; in do_create_gp_partition()
754 value |= (1 << partition); in do_create_gp_partition()
756 value &= ~(1 << partition); in do_create_gp_partition()
761 partition, EXT_CSD_PARTITIONS_ATTRIBUTE, device); in do_create_gp_partition()
765 address = EXT_CSD_EXT_PARTITIONS_ATTRIBUTE_0 + (partition - 1) / 2; in do_create_gp_partition()
[all …]
/external/autotest/client/site_tests/hardware_TrimIntegrity/
Dcontrol7 PURPOSE = 'Perform data integrity trim test on an unmounted partition.'
12 Performs data integrity trim test on an unmounted partition.

123456789