Mailinglist Archive: vhostmd (42 mails)
| < Previous | Next > |
Re: [vhostmd] [PATCH] Make the default disk be /dev/shm/vhostmd0.
- From: Jim Fehlig <jfehlig@xxxxxxxxxx>
- Date: Wed, 07 Oct 2009 14:04:48 -0600
- Message-id: <4ACCF460.6010506@xxxxxxxxxx>
Richard W.M. Jones wrote:
ACK
--
To unsubscribe, e-mail: vhostmd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: vhostmd+help@xxxxxxxxxxxx
[Here are three patches which I committed already (by accident). I'm
posting them for review instead here. If there are problems we can
revert or amend what was committed.]
This first patch changes the default exported disk to be
/dev/shm/vhostmd0 (instead of /dev/shm/vhostmd/disk0).
Having the intermediate vhostmd directory is problematic because there
is no good place to change the permissions on this directory, and if
the permissions aren't made more permissive that the default then
libvirt will fail to start KVM-based domains.
From 0e903207780030521c4dad7f41e5b7b748376d85 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Oct 2009 10:49:02 +0100
Subject: [PATCH 1/4] Make the default disk be /dev/shm/vhostmd0.
Previously we used a subdirectory (/dev/shm/vhostmd/). However
the permissions on the subdirectory had to be set by hand by the
system administrator, and if the sysadmin didn't set them, then
libvirt would fail to start the guest.
However by just putting the metrics disk into /dev/shm directly,
the permissions can be controlled by vhostmd when it creates the
device.
Not having the subdirectory is also simpler.
---
README | 4 ++--
docs/man/vhostmd.8 | 4 ++--
libmetrics/libmetrics.c | 2 +-
vhostmd.xml | 2 +-
vhostmd/vhostmd.c | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
ACK
--
To unsubscribe, e-mail: vhostmd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: vhostmd+help@xxxxxxxxxxxx
| < Previous | Next > |