pub(crate) struct TopLevel {
Show 31 fields pub(crate) disk_path: Utf8PathBuf, pub(crate) verbose: bool, pub(crate) fuchsia_build_dir: Option<Utf8PathBuf>, pub(crate) arch: Arch, pub(crate) host_arch: Arch, pub(crate) bootloader: Option<Utf8PathBuf>, pub(crate) zbi: Option<Utf8PathBuf>, pub(crate) cmdline: Option<Utf8PathBuf>, pub(crate) zedboot: Option<Utf8PathBuf>, pub(crate) ramdisk_only: bool, pub(crate) blob: Option<Utf8PathBuf>, pub(crate) use_sparse_fvm: bool, pub(crate) sparse_fvm: Option<Utf8PathBuf>, pub(crate) no_abr: bool, pub(crate) zircon_a: Option<Utf8PathBuf>, pub(crate) vbmeta_a: Option<Utf8PathBuf>, pub(crate) zircon_b: Option<Utf8PathBuf>, pub(crate) vbmeta_b: Option<Utf8PathBuf>, pub(crate) zircon_r: Option<Utf8PathBuf>, pub(crate) vbmeta_r: Option<Utf8PathBuf>, pub(crate) abr_size: u64, pub(crate) vbmeta_size: u64, pub(crate) abr_boot: BootPart, pub(crate) block_size: Option<u64>, pub(crate) efi_size: u64, pub(crate) fvm_size: Option<u64>, pub(crate) resize: Option<u64>, pub(crate) seed: Option<String>, pub(crate) depfile: bool, pub(crate) use_fxfs: bool, pub(crate) fxfs: Option<Utf8PathBuf>,
}
Expand description

make-fuchsia-vol

Fields§

§disk_path: Utf8PathBuf

disk-path

§verbose: bool

enable verbose logging

§fuchsia_build_dir: Option<Utf8PathBuf>

fuchsia build dir

§arch: Arch

the architecture of the target CPU (x64|arm64)

§host_arch: Arch

the architecture of the host CPU (x64|arm64)

§bootloader: Option<Utf8PathBuf>

path to bootx64.efi

§zbi: Option<Utf8PathBuf>

path to zbi (default: zircon-a from image manifests)

§cmdline: Option<Utf8PathBuf>

path to command line file (if exists)

§zedboot: Option<Utf8PathBuf>

path to zedboot.zbi (default: zircon-r from image manifests)

§ramdisk_only: bool

ramdisk-only mode - only write an ESP partition

§blob: Option<Utf8PathBuf>

path to blob partition image (not used with ramdisk)

§use_sparse_fvm: bool

if true, use sparse fvm instead of full fvm

§sparse_fvm: Option<Utf8PathBuf>

path to sparse FVM image (default: storage-sparse from image manifests)

§no_abr: bool

don’t add Zircon-{{A,B,R}} partitions

§zircon_a: Option<Utf8PathBuf>

path to partition image for Zircon-A (default: from –zbi)

§vbmeta_a: Option<Utf8PathBuf>

path to partition image for Vbmeta-A

§zircon_b: Option<Utf8PathBuf>

path to partition image for Zircon-B (default: from –zbi)

§vbmeta_b: Option<Utf8PathBuf>

path to partition image for Vbmeta-B

§zircon_r: Option<Utf8PathBuf>

path to partition image for Zircon-R (default: zircon-r from image manifests)

§vbmeta_r: Option<Utf8PathBuf>

path to partition image for Vbmeta-R

§abr_size: u64

kernel partition size for A/B/R

§vbmeta_size: u64

partition size for vbmeta A/B/R

§abr_boot: BootPart

A/B/R partition to boot by default

§block_size: Option<u64>

the block size of the target disk

§efi_size: u64

efi partition size in bytes

§fvm_size: Option<u64>

fvm partition size in bytes (unspecified means fill)

§resize: Option<u64>

create or resize the image to this size in bytes

§seed: Option<String>

a seed from which the UUIDs are derived; this will also set any timestamps used to fixed values, so the resulting image should be reproducible (only suitable for TESTING).

§depfile: bool

if true, write a dependency file which will be the same as the output path but with a ‘.d’ extension.

§use_fxfs: bool

whether to use Fxfs instead of FVM to store the base system

§fxfs: Option<Utf8PathBuf>

path to Fxfs partition image (if –use_fxfs is set)

Trait Implementations§

source§

impl Debug for TopLevel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgs for TopLevel

source§

fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>

Construct the type from an input set of arguments. Read more
source§

fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>

Get a String with just the argument names, e.g., options, flags, subcommands, etc, but without the values of the options and arguments. This can be useful as a means to capture anonymous usage statistics without revealing the content entered by the end user. Read more
source§

impl TopLevelCommand for TopLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V