Skip to content

Commit

Permalink
OpenNebula#3103 validate resize execution
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Mar 21, 2019
1 parent 724078b commit e55088f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vmm_mad/remotes/lib/lxd/mapper/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ def map(one_vm, disk, directory)

case fs_type
when /xfs/
change_fs_uuid("#{COMMANDS[:xfs_admin]} -U generate #{device}")
cmd = "#{COMMANDS[:xfs_admin]} -U generate #{device}"
return unless change_fs_uuid(cmd)

when /ext/
change_fs_uuid("#{COMMANDS[:tune2fs]} tune2fs -U random #{device}")
cmd = "#{COMMANDS[:tune2fs]} tune2fs -U random #{device}"
return unless change_fs_uuid(cmd)
end

# TODO: Osize is always < size after 1st resize during deployment
Expand Down

0 comments on commit e55088f

Please sign in to comment.