VirtualBox

Changeset 77090 in vbox


Ignore:
Timestamp:
Feb 1, 2019 1:16:33 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128544
Message:

Eliminated '=' from parsing style of long-options, fixed typos and substantially re-worked the usage section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/vboximg-mount/vboximg-mount.cpp

    r76553 r77090  
    165165
    166166static struct fuse_opt vboximgOptDefs[] = {
    167     OPTION("--image=%s",      pszImageUuidOrPath,   0),
     167    OPTION("--image %s",      pszImageUuidOrPath,   0),
    168168    OPTION("-i %s",           pszImageUuidOrPath,   0),
    169169    OPTION("--rw",            fRW,                  1),
    170170    OPTION("--root",          fAllowRoot,           0),
    171     OPTION("--vm=%s",         pszVm,                0),
    172     OPTION("--partition=%d",  idxPartition,         1),
     171    OPTION("--vm %s",         pszVm,                0),
     172    OPTION("--partition %d",  idxPartition,         1),
    173173    OPTION("-p %d",           idxPartition,         1),
    174     OPTION("--offset=%d",     offset,               1),
     174    OPTION("--offset %d",     offset,               1),
    175175    OPTION("-o %d",           offset,               1),
    176     OPTION("--size=%d",       size,                 1),
     176    OPTION("--size %d",       size,                 1),
    177177    OPTION("-s %d",           size,                 1),
    178178    OPTION("-l",              fList,                1),
     
    210210    RTPrintf("usage: vboximg-mount [options] <mount point directory path>\n\n"
    211211        "vboximg-mount options:\n\n"
    212         "  [ { -i | --image= } <specifier> ]  VirtualBox disk base or snapshot image,\n"
     212        "  [ { -i | --image } <specifier> ]   VirtualBox disk base or snapshot image,\n"
    213213        "                                     specified by UUID, or fully-qualified path\n"
    214214        "\n"
     
    219219        "                                     i.e. including snapshot images and paths.\n"
    220220        "\n"
    221         " [ { -w | --wide } ]                 List media in wide / tabular format\n"
     221        "  [ { -w | --wide } ]                List media in wide / tabular format\n"
    222222        "                                     (reduces vertical scrolling but requires\n"
    223         "                                     wider than standard 80 column window\n)"
     223        "                                     wider than standard 80 column window)\n"
    224224        "\n"
    225         "  [ --vm=UUID ]                      Restrict media list to specified vm.\n"
     225        "  [ --vm UUID ]                      Restrict media list to specified vm.\n"
    226226        "\n"
    227         "  [ { -p | --partition= } <part #> ] Expose only specified partition via FUSE.\n"
     227        "  [ { -p | --partition } <part #> ] Expose only specified partition via FUSE.\n"
    228228        "\n"
    229         "  [ { -o | --offset= } <byte #> ]    Bias disk I/O by offset from disk start.\n"
     229        "  [ { -o | --offset } <byte #> ]     Bias disk I/O by offset from disk start.\n"
    230230        "                                     (incompatible with -p, --partition)\n"
    231231        "\n"
    232         "  [ { -s | --size=<bytes> } ]        Specify size of mounted disk.\n"
     232        "  [ { -s | --size <bytes> } ]        Specify size of mounted disk.\n"
    233233        "                                     (incompatible with -p, --partition)\n"
    234234        "\n"
     
    237237        "  [ --root ]                         Same as -o allow_root.\n"
    238238        "\n"
    239         "  [ { -v | --verbose } ]              Log extra information.\n"
     239        "  [ { -v | --verbose } ]             Log extra information.\n"
    240240        "\n"
    241241        "  [ -o opt[,opt...]]                 FUSE mount options.\n"
    242242        "\n"
    243         "  [ { -h | -? } ]                    Display short usage info (no FUSE options).\n"
    244         "  [ --help ]                         Display long usage info (incl. FUSE opts).\n\n"
     243        "  [ { --help | -h | -? } ]           Display this usage information.\n"
    245244    );
    246245    RTPrintf("\n"
    247246      "vboximg-mount is a utility to make VirtualBox disk images available to the host\n"
    248       "operating system in a root or non-root accessible way. The user determines the\n"
    249       "historical representation of the disk by choosing either the base image or a\n"
    250       "snapshot, to establish the desired level of currency of the mounted disk.\n"
    251       "\n"
    252       "The disk image is mounted through this utility inside a FUSE-based filesystem\n"
    253       "that overlays the user-provided mount point. The FUSE filesystem presents a\n"
    254       "a directory that contains two files: an HDD pseudo device node and a symbolic\n"
    255       "link. The device node is named 'vhdd' and is the access point to the synthesized\n"
    256       "state of the virtual disk. It is the entity that can be mounted or otherwise\n"
    257       "accessed through the host OS. The symbolic link is given the same name as the\n"
    258       "base image, as determined from '--image' option argument. The link equates\n"
    259       "to the specified image's location (path).\n"
     247      "operating system in a root or non-root accessible way. The user selects which\n"
     248      "point in the available history of the virtual disk to mount it by specifying\n"
     249      "either the base image or a snapshot image on the command line.\n"
    260250      "\n"
    261251      "If the user provides a base image UUID/path with the --image option, only\n"
    262       "the base image will be exposed via vhdd, disregarding any snapshots.\n"
    263       "Alternatively, if a snapshot (e.g. disk differencing image) is provided,\n"
    264       "the chain of snapshots is calculated from that \"leaf\" snapshot\n"
    265       "to the base image and the whole chain of images is merged to form the exposed\n"
    266       "state of the FUSE-mounted disk.\n"
     252      "the base image will be mounted, disregarding any snapshots. Alternatively,\n"
     253      "if a snapshot (e.g. disk differencing image) is provided, the chain of\n"
     254      "snapshots is calculated from that \"leaf\" snapshot to the base image and\n"
     255      "the resulting chain is processed to synthesize a FUSE-mounted virtual disk\n"
     256      "in the depicted state.\n"
    267257      "\n"
    268 
     258      "The virtual disk is exposed as a device node within a FUSE-based filesystem\n"
     259      "that overlays the user-provided mount point. The FUSE filesystem consists of a\n"
     260      "directory containing two files: A pseudo HDD device node and a symbolic\n"
     261      "link. The device node, named 'vhdd', is the access point to the virtual disk\n"
     262      "(i.e. the OS-mountable raw binary). The symbolic link has the same basename(1)\n"
     263      "as the virtual disk base image and points to the location of the\n"
     264      "virtual disk base image. If the --partition, --offset, or --size\n"
     265      "options are provided, the boundaries of the FUSE-mounted subsection of the\n"
     266      "virtual disk will be described as a numeric range in brackets appended to the\n"
     267      "symbolic link name.\n"
     268      "\n"
    269269    );
    270270}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette