Changeset 77090 in vbox
- Timestamp:
- Feb 1, 2019 1:16:33 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128544
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ImageMounter/vboximg-mount/vboximg-mount.cpp
r76553 r77090 165 165 166 166 static struct fuse_opt vboximgOptDefs[] = { 167 OPTION("--image =%s", pszImageUuidOrPath, 0),167 OPTION("--image %s", pszImageUuidOrPath, 0), 168 168 OPTION("-i %s", pszImageUuidOrPath, 0), 169 169 OPTION("--rw", fRW, 1), 170 170 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), 173 173 OPTION("-p %d", idxPartition, 1), 174 OPTION("--offset =%d", offset, 1),174 OPTION("--offset %d", offset, 1), 175 175 OPTION("-o %d", offset, 1), 176 OPTION("--size =%d", size, 1),176 OPTION("--size %d", size, 1), 177 177 OPTION("-s %d", size, 1), 178 178 OPTION("-l", fList, 1), … … 210 210 RTPrintf("usage: vboximg-mount [options] <mount point directory path>\n\n" 211 211 "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" 213 213 " specified by UUID, or fully-qualified path\n" 214 214 "\n" … … 219 219 " i.e. including snapshot images and paths.\n" 220 220 "\n" 221 " [ { -w | --wide } ]List media in wide / tabular format\n"221 " [ { -w | --wide } ] List media in wide / tabular format\n" 222 222 " (reduces vertical scrolling but requires\n" 223 " wider than standard 80 column window \n)"223 " wider than standard 80 column window)\n" 224 224 "\n" 225 " [ --vm =UUID ] Restrict media list to specified vm.\n"225 " [ --vm UUID ] Restrict media list to specified vm.\n" 226 226 "\n" 227 " [ { -p | --partition = } <part #> ]Expose only specified partition via FUSE.\n"227 " [ { -p | --partition } <part #> ] Expose only specified partition via FUSE.\n" 228 228 "\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" 230 230 " (incompatible with -p, --partition)\n" 231 231 "\n" 232 " [ { -s | --size =<bytes> } ] Specify size of mounted disk.\n"232 " [ { -s | --size <bytes> } ] Specify size of mounted disk.\n" 233 233 " (incompatible with -p, --partition)\n" 234 234 "\n" … … 237 237 " [ --root ] Same as -o allow_root.\n" 238 238 "\n" 239 " [ { -v | --verbose } ] 239 " [ { -v | --verbose } ] Log extra information.\n" 240 240 "\n" 241 241 " [ -o opt[,opt...]] FUSE mount options.\n" 242 242 "\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" 245 244 ); 246 245 RTPrintf("\n" 247 246 "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" 260 250 "\n" 261 251 "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 "t o 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" 267 257 "\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" 269 269 ); 270 270 }
Note:
See TracChangeset
for help on using the changeset viewer.