From: Sean Dague Subject: [PATCH] xm block-* commands explained in xm.1 Date: Thu, 17 Nov 2005 14:59:58 -0500 Message-ID: <20051117195957.GS9653@underhill.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1349343597==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1349343597== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1J4USyVh4Jt5OGCL" Content-Disposition: inline --1J4USyVh4Jt5OGCL Content-Type: multipart/mixed; boundary="oGy11dVowAZA6eXT" Content-Disposition: inline --oGy11dVowAZA6eXT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch explains the block-* commands in more detail. It also has generated some interesting issues documented at: http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D416 -Sean --=20 __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ --oGy11dVowAZA6eXT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xen-unstable.7834.patch" Content-Transfer-Encoding: quoted-printable Signed off by: Sean Dague xm.pod.1 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 54 insertions(+), 4 deletions(-) # HG changeset patch # User sean@dague.net # Node ID 1607effa1bc6a56abc035ca7d3168f982d0d270d # Parent 1f243458ace6339bbab8d246ee5904deff924910 added block device content, including finding a few more bugs in xen diff -r 1f243458ace6 -r 1607effa1bc6 docs/man/xm.pod.1 --- a/docs/man/xm.pod.1 Wed Nov 16 17:55:57 2005 -0500 +++ b/docs/man/xm.pod.1 Thu Nov 17 14:50:45 2005 -0500 @@ -626,12 +626,62 @@ =20 =3Ditem B I I I I I<[bedoma= in-id]> =20 -Create a new virtual block device +Create a new virtual block device. This will trigger a hotplug event +for the guest. + +B + +=3Dover 4 + +=3Ditem I + +The domain id of the guest domain that the device will be attached to. + +=3Ditem I + +The device in the backend domain (usually domain 0) to be exported. +This can be specified as a physical partition (phy:sda7) or as a file +mounted as loopback (file://path/to/loop.iso). + +=3Ditem I + +How the device should be presented to the guest domain. It can be +specified as either a symbolic name, such as /dev/hdc, for common +devices, or by device id, such as 0x1400 (/dev/hdc device id in hex). + +=3Ditem I + +The access mode for the device from the guest domain. Supported modes +are I (read/write) or I (read-only). + +=3Ditem I + +The back end domain hosting the device. This defaults to domain 0. + +=3Dback + +B + +=3Dover 4 + +=3Ditem I + +xm block-attach guestdomain file://path/to/dsl-2.0RC2.iso /dev/hdc ro + +This will mount the dsl iso as /dev/hdc in the guestdomain as a read +only device. This will probably not be detected as a cdrom by the +guest, but mounting /dev/hdc manually will work. + +=3Dback =20 =3Ditem B I I =20 -Destroy a domain's virtual block device. DevId may either be a device -ID or the device name as mounted in the guest. +Destroy a domain's virtual block device. devid B be the device +id given to the device by domain 0. You will need to run I to determine that number. + +FIXME: this is currently B. Even though a block device is +removed from domU, it appears to still be allocated in the domain 0. =20 =3Ditem B I =20 @@ -722,7 +772,7 @@ =20 =3Dhead1 SEE ALSO =20 -B(5) +B(5), B(1) =20 BVT scheduling paper: K.J. Duda and D.R. Cheriton. Borrowed Virtual Time (BVT) scheduling: supporting latency-sensitive threads in a --oGy11dVowAZA6eXT-- --1J4USyVh4Jt5OGCL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDfOE9SamXem9TdyYRAjYqAJ9xea3HynkQH4G+Ddt5Ce0q3lnmiACgshwj a+4DLP3E0Vlfa98vy+8febY= =vONf -----END PGP SIGNATURE----- --1J4USyVh4Jt5OGCL-- --===============1349343597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1349343597==--