From: Ján Tomko Date: Thu, 20 Mar 2014 15:42:52 +0000 (+0100) Subject: Ignore char devices in storage pools by default X-Git-Tag: v1.1.3.5~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=595ada1973ee7450d6defa3667d0c6f01cd63ef1;p=thirdparty%2Flibvirt.git Ignore char devices in storage pools by default Without this, using /dev/mapper as a directory pool fails in virStorageBackendUpdateVolTargetInfoFD: cannot seek to end of file '/dev/mapper/control': Illegal seek Skip over character devices by default. https://bugzilla.redhat.com/show_bug.cgi?id=710866 (cherry picked from commit 0edfc9ef63b338bbcb8eb4b98653589c3889726e) --- diff --git a/src/storage/storage_backend.h b/src/storage/storage_backend.h index d8d3097283..ca2d240f09 100644 --- a/src/storage/storage_backend.h +++ b/src/storage/storage_backend.h @@ -107,7 +107,6 @@ enum { # define VIR_STORAGE_VOL_OPEN_DEFAULT (VIR_STORAGE_VOL_OPEN_ERROR |\ VIR_STORAGE_VOL_OPEN_REG |\ - VIR_STORAGE_VOL_OPEN_CHAR |\ VIR_STORAGE_VOL_OPEN_BLOCK) int virStorageBackendVolOpenCheckMode(const char *path, struct stat *sb,