• Home
  • Raw
  • Download

Lines Matching refs:params

74     CreateLogicalPartitionParams params = {  in MapPartitionOnDeviceMapper()  local
85 return CreateLogicalPartition(params, path); in MapPartitionOnDeviceMapper()
137 bool PerformOpResize(const OpParameters& params) { in PerformOpResize() argument
138 if (!params.ExpectArgSize(2)) return false; in PerformOpResize()
139 const auto& partition_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpResize()
140 auto size = params.uint_arg(1, "size"); in PerformOpResize()
143 auto partition = params.builder->FindPartition(partition_name_suffix); in PerformOpResize()
153 if (!params.builder->ResizePartition(partition, size.value())) { in PerformOpResize()
161 bool PerformOpRemove(const OpParameters& params) { in PerformOpRemove() argument
162 if (!params.ExpectArgSize(1)) return false; in PerformOpRemove()
163 const auto& partition_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpRemove()
169 params.builder->RemovePartition(partition_name_suffix); in PerformOpRemove()
173 bool PerformOpAdd(const OpParameters& params) { in PerformOpAdd() argument
174 if (!params.ExpectArgSize(2)) return false; in PerformOpAdd()
175 const auto& partition_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpAdd()
176 const auto& group_name_suffix = AddSlotSuffix(params.arg(1)); in PerformOpAdd()
178 if (params.builder->AddPartition(partition_name_suffix, group_name_suffix, in PerformOpAdd()
187 bool PerformOpMove(const OpParameters& params) { in PerformOpMove() argument
188 if (!params.ExpectArgSize(2)) return false; in PerformOpMove()
189 const auto& partition_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpMove()
190 const auto& new_group_name_suffix = AddSlotSuffix(params.arg(1)); in PerformOpMove()
192 auto partition = params.builder->FindPartition(partition_name_suffix); in PerformOpMove()
201 if (!params.builder->ChangePartitionGroup(partition, new_group_name_suffix)) { in PerformOpMove()
210 bool PerformOpAddGroup(const OpParameters& params) { in PerformOpAddGroup() argument
211 if (!params.ExpectArgSize(2)) return false; in PerformOpAddGroup()
212 const auto& group_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpAddGroup()
213 auto maximum_size = params.uint_arg(1, "maximum_size"); in PerformOpAddGroup()
216 auto group = params.builder->FindGroup(group_name_suffix); in PerformOpAddGroup()
226 if (!params.builder->AddGroup(group_name_suffix, maximum_size.value())) { in PerformOpAddGroup()
234 bool PerformOpResizeGroup(const OpParameters& params) { in PerformOpResizeGroup() argument
235 if (!params.ExpectArgSize(2)) return false; in PerformOpResizeGroup()
236 const auto& group_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpResizeGroup()
237 auto new_size = params.uint_arg(1, "maximum_size"); in PerformOpResizeGroup()
240 auto group = params.builder->FindGroup(group_name_suffix); in PerformOpResizeGroup()
248 if (!params.builder->ChangeGroupSize(group_name_suffix, new_size.value())) { in PerformOpResizeGroup()
266 bool PerformOpRemoveGroup(const OpParameters& params) { in PerformOpRemoveGroup() argument
267 if (!params.ExpectArgSize(1)) return false; in PerformOpRemoveGroup()
268 const auto& group_name_suffix = AddSlotSuffix(params.arg(0)); in PerformOpRemoveGroup()
270 auto partition_names = ListPartitionNamesInGroup(params.builder, group_name_suffix); in PerformOpRemoveGroup()
277 params.builder->RemoveGroupAndPartitions(group_name_suffix); in PerformOpRemoveGroup()
281 bool PerformOpRemoveAllGroups(const OpParameters& params) { in PerformOpRemoveAllGroups() argument
282 if (!params.ExpectArgSize(0)) return false; in PerformOpRemoveAllGroups()
284 auto group_names = params.builder->ListGroups(); in PerformOpRemoveAllGroups()
286 auto partition_names = ListPartitionNamesInGroup(params.builder, group_name_suffix); in PerformOpRemoveAllGroups()
294 params.builder->RemoveGroupAndPartitions(group_name_suffix); in PerformOpRemoveAllGroups()
336 OpParameters params; in UpdateDynamicPartitions() local
337 params.tokens = tokens; in UpdateDynamicPartitions()
338 params.builder = builder.get(); in UpdateDynamicPartitions()
339 if (!it->second(params)) { in UpdateDynamicPartitions()