}
int
-virStorageBackendUpdateVolInfoFlags(virStorageVolDefPtr vol,
- int withCapacity,
- unsigned int openflags)
+virStorageBackendUpdateVolInfo(virStorageVolDefPtr vol,
+ bool withCapacity,
+ unsigned int openflags)
{
int ret;
return 0;
}
-int virStorageBackendUpdateVolInfo(virStorageVolDefPtr vol,
- int withCapacity)
-{
- return virStorageBackendUpdateVolInfoFlags(vol, withCapacity,
- VIR_STORAGE_VOL_OPEN_DEFAULT);
-}
-
/*
* virStorageBackendUpdateVolTargetInfoFD:
* @target: target definition ptr of volume to update
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
int virStorageBackendUpdateVolInfo(virStorageVolDefPtr vol,
- int withCapacity);
-int virStorageBackendUpdateVolInfoFlags(virStorageVolDefPtr vol,
- int withCapacity,
- unsigned int openflags);
+ bool withCapacity,
+ unsigned int openflags);
int virStorageBackendUpdateVolTargetInfo(virStorageVolTargetPtr target,
unsigned long long *allocation,
unsigned long long *capacity,
}
/* Refresh allocation/capacity/perms */
- if (virStorageBackendUpdateVolInfo(vol, 1) < 0)
+ if (virStorageBackendUpdateVolInfo(vol, true,
+ VIR_STORAGE_VOL_OPEN_DEFAULT) < 0)
return -1;
/* set partition type */
int ret;
/* Refresh allocation / permissions info in case its changed */
- ret = virStorageBackendUpdateVolInfoFlags(vol, 0,
- VIR_STORAGE_VOL_FS_OPEN_FLAGS);
+ ret = virStorageBackendUpdateVolInfo(vol, false,
+ VIR_STORAGE_VOL_FS_OPEN_FLAGS);
if (ret < 0)
return ret;
if (!vol->key && VIR_STRDUP(vol->key, groups[2]) < 0)
goto cleanup;
- if (virStorageBackendUpdateVolInfo(vol, 1) < 0)
+ if (virStorageBackendUpdateVolInfo(vol, true,
+ VIR_STORAGE_VOL_OPEN_DEFAULT) < 0)
goto cleanup;
nextents = 1;