This commit is contained in:
Keir Fraser committed 2011-07-14 09:33:02 +01:00
commit f9aa7ce1a0
6 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -280,7 +280,7 @@ mount it read-write in a guest domain."
fi
shared_list=$(losetup -a |
sed -n -e "s@^\([^:]\+\)\(:[[:blank:]]\[${dev}\]:${inode}[[:blank:]](.*)\)@\1@p" )
sed -n -e "s@^\([^:]\+\)\(:[[:blank:]]\[0*${dev}\]:${inode}[[:blank:]](.*)\)@\1@p" )
for dev in $shared_list
do
if [ -n "$dev" ]
+4 -4
View File
@@ -6,10 +6,10 @@
# description: Run domain watchdog daemon
### BEGIN INIT INFO
# Provides: xen-watchdog
# Required-Start: xend
# Should-Start: $syslog $remote_fs
# Required-Stop: xend
# Should-Stop: $syslog $remote_fs
# Required-Start: $syslog $remote_fs
# Should-Start: xend
# Required-Stop: $syslog $remote_fs
# Should-Stop: xend
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop xen-watchdog
+2 -2
View File
@@ -8,9 +8,9 @@
# description: Starts and stops the Xen control daemon.
### BEGIN INIT INFO
# Provides: xend
# Required-Start: $syslog $remote_fs xenstored
# Required-Start: $syslog $remote_fs xenstored xenconsoled
# Should-Start:
# Required-Stop: $syslog $remote_fs xenstored
# Required-Stop: $syslog $remote_fs xenstored xenconsoled
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
+4 -4
View File
@@ -16,10 +16,10 @@
#
### BEGIN INIT INFO
# Provides: xendomains
# Required-Start: $syslog $remote_fs xend
# Should-Start:
# Required-Stop: $syslog $remote_fs xend
# Should-Stop:
# Required-Start: $syslog $remote_fs xenstored xenconsoled
# Should-Start: xend
# Required-Stop: $syslog $remote_fs xenstored xenconsoled
# Should-Stop: xend
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop secondary xen domains
+1 -3
View File
@@ -1089,9 +1089,7 @@ char * libxl_device_disk_local_attach(libxl_ctx *ctx, libxl_device_disk *disk)
break;
case LIBXL_DISK_FORMAT_QCOW:
case LIBXL_DISK_FORMAT_QCOW2:
LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "cannot locally attach"
" a qcow or qcow2 disk image");
break;
abort(); /* prevented by libxl__device_disk_set_backend */
default:
LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
"unrecognized disk format: %d", disk->format);
+13 -11
View File
@@ -134,11 +134,7 @@ static int disk_try_backend(disk_try_backend_args *a,
case LIBXL_DISK_BACKEND_PHY:
if (!(a->disk->format == LIBXL_DISK_FORMAT_RAW ||
a->disk->format == LIBXL_DISK_FORMAT_EMPTY)) {
LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend phy"
" unsuitable due to format %s",
a->disk->vdev,
libxl_disk_format_to_string(a->disk->format));
return 0;
goto bad_format;
}
if (a->disk->format != LIBXL_DISK_FORMAT_EMPTY &&
!S_ISBLK(a->stab.st_mode)) {
@@ -157,12 +153,9 @@ static int disk_try_backend(disk_try_backend_args *a,
a->disk->vdev);
return 0;
}
if (a->disk->format == LIBXL_DISK_FORMAT_EMPTY ||
(S_ISREG(a->stab.st_mode) && !a->stab.st_size)) {
LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend tap"
" unsuitable because empty devices not supported",
a->disk->vdev);
return 0;
if (!(a->disk->format == LIBXL_DISK_FORMAT_RAW ||
a->disk->format == LIBXL_DISK_FORMAT_VHD)) {
goto bad_format;
}
return backend;
@@ -175,6 +168,15 @@ static int disk_try_backend(disk_try_backend_args *a,
return 0;
}
abort(); /* notreached */
bad_format:
LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend %s"
" unsuitable due to format %s",
a->disk->vdev,
libxl_disk_backend_to_string(backend),
libxl_disk_format_to_string(a->disk->format));
return 0;
}
int libxl__device_disk_set_backend(libxl__gc *gc, libxl_device_disk *disk) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.