Revision 2c42c5df

b/lib/cmdlib.py
7706 7706

  
7707 7707
    self.disk = instance.FindDisk(self.op.disk)
7708 7708

  
7709
    _CheckNodesFreeDisk(self, nodenames, self.op.amount)
7709
    if instance.disk_template != constants.DT_FILE:
7710
      # TODO: check the free disk space for file, when that feature will be
7711
      # supported
7712
      _CheckNodesFreeDisk(self, nodenames, self.op.amount)
7710 7713

  
7711 7714
  def Exec(self, feedback_fn):
7712 7715
    """Execute disk grow.
b/lib/constants.py
266 266
DTS_NOT_LVM = frozenset([DT_DISKLESS, DT_FILE])
267 267

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

  
271 271
# logical disk types
272 272
LD_LV = "lvm"
b/lib/objects.py
497 497
    actual algorithms from bdev.
498 498

  
499 499
    """
500
    if self.dev_type == constants.LD_LV:
500
    if self.dev_type == constants.LD_LV or self.dev_type == constants.LD_FILE:
501 501
      self.size += amount
502 502
    elif self.dev_type == constants.LD_DRBD8:
503 503
      if self.children:

Also available in: Unified diff