diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-08-09 23:16:27 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-09 23:16:27 +0000 |
commit | 770395dee1e3fd632f0cbb71a24f2648d4d50f1b (patch) | |
tree | 7e1ef9306d349b688817734bca18381cbe38f4ff /fastboot/fastboot.cpp | |
parent | 18eae78c09d8e037fc0e3d038cf338e15ba7ddcb (diff) | |
parent | 0d4277d7b34eb1f5e37f268732ad7230ad903855 (diff) |
Merge "fastbootd: Add commands for logical partitions."
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index d652c0df9..dc94952ba 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1691,6 +1691,17 @@ int FastBootTool::Main(int argc, char* argv[]) { } else { syntax_error("unknown 'flashing' command %s", args[0].c_str()); } + } else if (command == "create-logical-partition") { + std::string partition = next_arg(&args); + std::string size = next_arg(&args); + fb_queue_create_partition(partition, size); + } else if (command == "delete-logical-partition") { + std::string partition = next_arg(&args); + fb_queue_delete_partition(partition); + } else if (command == "resize-logical-partition") { + std::string partition = next_arg(&args); + std::string size = next_arg(&args); + fb_queue_resize_partition(partition, size); } else { syntax_error("unknown command %s", command.c_str()); } |