diff --git a/src/locking/domain_lock.c b/src/locking/domain_lock.c index de1937c..45617e6 100644 --- a/src/locking/domain_lock.c +++ b/src/locking/domain_lock.c @@ -79,9 +79,9 @@ static int virDomainLockManagerAddDisk(virLockManagerPtr lock, return 0; if (disk->readonly) - diskFlags |= VIR_LOCK_MANAGER_RESOURCE_READONLY; + return 0; if (disk->shared) - diskFlags |= VIR_LOCK_MANAGER_RESOURCE_SHARED; + return 0; VIR_DEBUG("Add disk %s", disk->src); if (virLockManagerAddResource(lock,