]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/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, 20 Mar 2014 17:13:57 +0000 (18:13 +0100)
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

src/storage/storage_backend.h

index aaa17a05e9f8150f72a31003dfba7785b8b9d56e..2034a22d6e039954a205d26436ebcf766260e933 100644 (file)
@@ -130,7 +130,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,