]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Ignore char devices in storage pools by default
authorJán Tomko <jtomko@redhat.com>
Thu, 20 Mar 2014 15:42:52 +0000 (16:42 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 10 Apr 2014 07:35:31 +0000 (09:35 +0200)
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)

src/storage/storage_backend.h

index d8d3097283343fd5b943d1be224f26d383168bbd..ca2d240f095db48f77d2cc949101b88ac5588f94 100644 (file)
@@ -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,