1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #2586: Optimize onedb fsck

(cherry picked from commit 492310768a15f90eb4428fcc43d3f190d53bd91f)
This commit is contained in:
Carlos Martín 2014-02-17 17:53:03 +01:00
parent 358a59d3a8
commit 8067c0db35
2 changed files with 672 additions and 599 deletions

File diff suppressed because it is too large Load Diff

View File

@ -229,6 +229,8 @@ class OneDB
begin
puts " > Running fsck" if ops[:verbose]
time0 = Time.now
result = @backend.fsck
if !result
@ -238,6 +240,12 @@ class OneDB
puts " > Done" if ops[:verbose]
puts "" if ops[:verbose]
time1 = Time.now
if LOG_TIME
puts " > Total time: #{time1 - time0}s" if ops[:verbose]
end
return 0
rescue Exception => e
puts e.message