]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: fs: Don't overwrite virDirCreate error
authorCole Robinson <crobinso@redhat.com>
Mon, 27 Apr 2015 20:48:05 +0000 (16:48 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 4 May 2015 16:56:38 +0000 (12:56 -0400)
virDirCreate will give us fine grained details about what actually failed.

src/storage/storage_backend_fs.c

index 101d85c24b699727ba1eb2faee7d1ec07cb5eaf4..c2f74e0ca235096e456dc96a62ed5d6e8c137fdc 100644 (file)
@@ -808,8 +808,6 @@ virStorageBackendFileSystemBuild(virConnectPtr conn ATTRIBUTE_UNUSED,
                             VIR_DIR_CREATE_ALLOW_EXIST |
                             (pool->def->type == VIR_STORAGE_POOL_NETFS
                             ? VIR_DIR_CREATE_AS_UID : 0))) < 0) {
-        virReportSystemError(-err, _("cannot create path '%s'"),
-                             pool->def->target.path);
         goto error;
     }
 
@@ -1050,8 +1048,6 @@ static int createFileDir(virConnectPtr conn ATTRIBUTE_UNUSED,
                             VIR_DIR_CREATE_FORCE_PERMS |
                             (pool->def->type == VIR_STORAGE_POOL_NETFS
                              ? VIR_DIR_CREATE_AS_UID : 0))) < 0) {
-        virReportSystemError(-err, _("cannot create path '%s'"),
-                             vol->target.path);
         return -1;
     }