Lines Matching refs:partition
11 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'))
83 self.assertTrue(partition.is_linux_fs_type('/dev/hdc4'))
100 parts = partition.get_partition_list(job, filter_func=lambda x: False,
106 self.god.stub_function(partition, 'partition')
107 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')
108 parts = partition.get_partition_list(job, open_func=fake_open)
113 partition.partition.expect_call(job, '/dev/hdc2').and_return('2')
114 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')
115 parts = partition.get_partition_list(job, exclude_swap=False,
121 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')
122 parts = partition.get_partition_list(job, min_blocks=600000,
137 reload(partition)
143 reload(partition)
151 reload(partition)
158 reload(partition)