[Ovirt-devel] Re: [PATCH] fix storages crazyness
Pierre-Gilles Mialon
pmialon at linagora.com
Tue Dec 1 16:47:08 UTC 2009
Hi,
Could you please have a look at this patch ? We really need it, and I think
that almost user need it too. It ensure that a disk is assigned only once to
one vm (wich means never two times or more the same disk for a single vm).
This became usefull when the number of message in qpidd increase.
Thanks,
Le lundi 16 novembre 2009 15:39:37 Michel Loiseleur, vous avez écrit :
> Hi,
>
> Just to point you this patch, which is quite important and not ACK at
> the moment.
>
> Thanks,
>
> Loiseleur Michel a écrit :
> > Signed-off-by: Loiseleur Michel <mloiseleur at linagora.com>
> > ---
> > app/models/vm.rb | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/app/models/vm.rb b/app/models/vm.rb
> > index 88e0aef..0be3f89 100644
> > --- a/app/models/vm.rb
> > +++ b/app/models/vm.rb
> > @@ -27,7 +27,7 @@ class Vm < ActiveRecord::Base
> > find(:all, :conditions=>{:state=>Task::STATE_QUEUED})
> > end
> > end
> > - has_and_belongs_to_many :storage_volumes
> > + has_and_belongs_to_many :storage_volumes, :uniq => true
> >
> > has_many :nics, :dependent => :destroy
>
--
Pierre-Gilles Mialon
Responsable hébergement :: Head of Hosting services
pmialon at linagora.com :: +33.1 58 18 65 46
Linagora :: http://www.linagora.com
27 rue de Berri :: 75008 PARIS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20091201/4810b4e9/attachment.sig>
More information about the ovirt-devel
mailing list