From: Cole Robinson Date: Mon, 27 Apr 2015 20:48:05 +0000 (-0400) Subject: storage: fs: Don't overwrite virDirCreate error X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=27a4c492f5b6c3ecb2e4859be06c03d9eb0d25ab;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git storage: fs: Don't overwrite virDirCreate error virDirCreate will give us fine grained details about what actually failed. --- diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c index 101d85c24..c2f74e0ca 100644 --- a/src/storage/storage_backend_fs.c +++ b/src/storage/storage_backend_fs.c @@ -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; }