Also note that this code is dangerous, because it does not acquire a lock (and can thus return wrong results). I see that you you still use it correctly in vdisk_free, but it is maybe a bad idea to expos such method to the outside? > +sub volume_is_referenced_base { > + my ($cfg, $volid) = @_; > +