Revision 728489a3

b/lib/cmdlib.py
7700 7700

  
7701 7701
    self.instance = instance
7702 7702

  
7703
    if instance.disk_template not in (constants.DT_PLAIN, constants.DT_DRBD8):
7703
    if instance.disk_template not in constants.DTS_GROWABLE:
7704 7704
      raise errors.OpPrereqError("Instance's disk layout does not support"
7705 7705
                                 " growing.", errors.ECODE_INVAL)
7706 7706

  
b/lib/constants.py
265 265
# the set of non-lvm-based disk templates
266 266
DTS_NOT_LVM = frozenset([DT_DISKLESS, DT_FILE])
267 267

  
268
# the set of disk templates which can be grown
269
DTS_GROWABLE = frozenset([DT_PLAIN, DT_DRBD8])
270

  
268 271
# logical disk types
269 272
LD_LV = "lvm"
270 273
LD_DRBD8 = "drbd8"
b/tools/burnin
961 961
          opts.disk_template in constants.DTS_NET_MIRROR) :
962 962
        self.BurnReplaceDisks2()
963 963

  
964
      if (opts.disk_template != constants.DT_DISKLESS and
964
      if (opts.disk_template in constants.DTS_GROWABLE and
965 965
          utils.any(self.disk_growth, lambda n: n > 0)):
966 966
        self.BurnGrowDisks()
967 967

  

Also available in: Unified diff