mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
storage: fs: Don't overwrite virDirCreate error
virDirCreate will give us fine grained details about what actually failed.
This commit is contained in:
parent
05cda3d3a4
commit
27a4c492f5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user