mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virdevmapper.c: Join two WITH_DEVMAPPER sections together
There are two distinct WITH_DEVMAPPER sections in the file, for different functions each. Rearrange the code to make some of future commits smaller. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
e2fd95ed45
commit
ae5752aabc
@ -195,19 +195,7 @@ virDevMapperGetTargets(const char *path,
|
|||||||
return virDevMapperGetTargetsImpl(path, devPaths, ttl);
|
return virDevMapperGetTargetsImpl(path, devPaths, ttl);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* ! WITH_DEVMAPPER */
|
|
||||||
|
|
||||||
int
|
|
||||||
virDevMapperGetTargets(const char *path G_GNUC_UNUSED,
|
|
||||||
char ***devPaths G_GNUC_UNUSED)
|
|
||||||
{
|
|
||||||
errno = ENOSYS;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
#endif /* ! WITH_DEVMAPPER */
|
|
||||||
|
|
||||||
|
|
||||||
#if WITH_DEVMAPPER
|
|
||||||
bool
|
bool
|
||||||
virIsDevMapperDevice(const char *dev_name)
|
virIsDevMapperDevice(const char *dev_name)
|
||||||
{
|
{
|
||||||
@ -223,6 +211,15 @@ virIsDevMapperDevice(const char *dev_name)
|
|||||||
|
|
||||||
#else /* ! WITH_DEVMAPPER */
|
#else /* ! WITH_DEVMAPPER */
|
||||||
|
|
||||||
|
int
|
||||||
|
virDevMapperGetTargets(const char *path G_GNUC_UNUSED,
|
||||||
|
char ***devPaths G_GNUC_UNUSED)
|
||||||
|
{
|
||||||
|
errno = ENOSYS;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
virIsDevMapperDevice(const char *dev_name G_GNUC_UNUSED)
|
virIsDevMapperDevice(const char *dev_name G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user