// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include #include #include #include #include // for zx_cprng_draw #include #include #include #include #include #include #include namespace { constexpr uint64_t kFlagHidden = 0x2; const char* bin_name; bool confirm_writes = true; void print_usage(void) { printf("usage:\n"); printf("Note that for all these commands, [] is the device containing the GPT.\n"); printf("Although using a GPT will split your device into small partitions, [] \n"); printf("should always refer to the containing device, NOT block devices representing\n"); printf("the partitions themselves.\n\n"); printf("> %s dump []\n", bin_name); printf(" View the properties of the selected device\n"); printf("> %s init []\n", bin_name); printf(" Initialize the block device with a GPT\n"); printf("> %s repartition [[