Home
last modified time | relevance | path

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

1234567891011

/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()
/external/syslinux/doc/
Dgpt.txt13 the PMBR, instead of containing only one "protective" partition (type
14 EE), may contain up to three partitions: a protective partition (EE)
15 *before* the active partition, the active partition, and a protective
16 partition (EE) *after* the active partition. The active partition is
19 All partitions, including the active partition, should have GPT
20 partition entries. Thus, changing which partition is active does NOT
21 change the GPT partition table.
35 partition to be booted is marked by setting bit 2 in the GPT Partition
42 The PMBR boot code loads the first sector of the bootable partition,
49 0 1 0x80 (this is a bootable partition)
[all …]
/external/libmojo/third_party/catapult/devil/devil/android/
Dfastboot_utils.py58 for partition in partitions:
59 partition_info = _KNOWN_PARTITIONS[partition]
62 return_dict[partition] = image_file
206 for partition in partitions:
207 if _KNOWN_PARTITIONS[partition].get('wipe_only') and not wipe:
209 'Not flashing in wipe mode. Skipping partition %s.', partition)
212 'Flashing %s with %s', partition, flash_image_files[partition])
213 self.fastboot.Flash(partition, flash_image_files[partition])
214 if _KNOWN_PARTITIONS[partition].get('restart', False):
/external/chromium-trace/catapult/devil/devil/android/
Dfastboot_utils.py60 for partition in partitions:
61 partition_info = _KNOWN_PARTITIONS[partition]
64 return_dict[partition] = image_file
208 for partition in partitions:
209 if _KNOWN_PARTITIONS[partition].get('wipe_only') and not wipe:
211 'Not flashing in wipe mode. Skipping partition %s.', partition)
214 'Flashing %s with %s', partition, flash_image_files[partition])
215 self.fastboot.Flash(partition, flash_image_files[partition])
216 if _KNOWN_PARTITIONS[partition].get('restart', False):
/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 …]
/external/avb/test/
Dfake_avb_ops.cc46 AvbIOResult FakeAvbOps::read_from_partition(const char* partition, in read_from_partition() argument
52 partition_dir_.Append(std::string(partition)).AddExtension("img"); in read_from_partition()
105 AvbIOResult FakeAvbOps::write_to_partition(const char* partition, in write_to_partition() argument
110 partition_dir_.Append(std::string(partition)).AddExtension("img"); in write_to_partition()
216 const char* partition, in get_unique_guid_for_partition() argument
222 snprintf(guid_buf, guid_buf_size, "1234-fake-guid-for:%s", partition); in get_unique_guid_for_partition()
247 const char* partition, in my_ops_read_from_partition() argument
254 ->read_from_partition(partition, offset, num_bytes, buffer, out_num_read); in my_ops_read_from_partition()
258 const char* partition, in my_ops_write_to_partition() argument
263 partition, offset, num_bytes, buffer); in my_ops_write_to_partition()
[all …]
Dfake_avb_ops.h42 virtual AvbIOResult read_from_partition(const char* partition,
48 virtual AvbIOResult write_to_partition(const char* partition,
73 const char* partition,
154 AvbIOResult read_from_partition(const char* partition,
160 AvbIOResult write_to_partition(const char* partition,
184 const char* partition,
/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/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/avb/libavb_user/
Davb_ops_user.c113 const char* partition, in read_from_partition() argument
123 fd = open_partition(partition, O_RDONLY); in read_from_partition()
133 "Error getting size of \"", partition, "\" partition.\n", NULL); in read_from_partition()
177 const char* partition, in write_to_partition() argument
186 fd = open_partition(partition, O_WRONLY); in write_to_partition()
188 avb_errorv("Error opening \"", partition, "\" partition.\n", NULL); in write_to_partition()
/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/ltp/testcases/kdump/sample/
Drunkdump.EXTRA_LKDTM.RHEL58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
Drunkdump.CRASHER.RHEL58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
Drunkdump.BASIC_LKDTM.SLES58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
Drunkdump.EXTRA_LKDTM.SLES58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
Drunkdump.BASIC_LKDTM.RHEL58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
Drunkdump.CRASHER.SLES58 # Dump vmcore on an EXT3 partition.
61 # Dump vmcore on an EXT3 partition with a LABEL.
64 # Dump vmcore on an EXT3 partition with a partition UID.
67 # Dump vmcore on a RAW partition.
/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."
21 corrupted stateful partition.
25 -Did not get OOBE after rebooting the device with corrupted stateful partition.
/external/ltp/testcases/kernel/fs/ftest/
Dftest02.c91 static char *partition; variable
445 sprintf(mount_buffer, "/bin/umount %s", partition); in cleanup()
450 partition, mntpoint); in cleanup()
452 if (umount(partition)) in cleanup()
455 partition, mntpoint); in cleanup()
459 partition); in cleanup()
462 } else if (umount(partition)) in cleanup()
464 partition, mntpoint); in cleanup()

1234567891011