manageiq-smartstate 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98576a595a6fc668bca6de56af398d52114fec83
4
- data.tar.gz: 29fda5c203c4eebf2083449effe8ab4127d0ed17
3
+ metadata.gz: bb3a8cbd47ea506835fe8f9945c8b2a9e3a9d567
4
+ data.tar.gz: 7551eec8bf0e551ef965d367f815b16dfbdbdf47
5
5
  SHA512:
6
- metadata.gz: e7e3bdb59eb6e3724ed430315f9451c5dae75f1cd1dfc988e5f20d0a3a36903402f7357e842a08ea7cfe8d3553d7491a4f6f2bd624b590e373b45423ef9c4e42
7
- data.tar.gz: 3b9ae707377b267a8c803bb3f478eca4ea81736367ff684dfcfbe85012bc487aa411a5e2e009cbb5df473c38dfb05a62b33f090078067013f49b8d1532589680
6
+ metadata.gz: a35ea5d4d2ae00b832ec7e8d6a20f5691b436014a4ffc964868481b3ff8d0417522942b80da165faf710b93f6b6484b6461c57320212ddc5ba5e661ecc71d342
7
+ data.tar.gz: 12b80f47b85ee9560d7971678bb1960d7dc3e4e29b2f88e581b33ecac80a2f11824dee9b4c0a9523cc0a7c98da74e77c5585b5a046d83d6671b9ce34e47a37b0
@@ -99,12 +99,14 @@ module XFS
99
99
  data_pointer = 0
100
100
  block_number = 1
101
101
  last_directory_space = @sb.block_size - DirectoryEntry::SIZEOF_SMALLEST_DIRECTORY_ENTRY
102
- if @inode_object.data_method == :extents
103
- return glob_single_extent_entries_by_linked_list if @inode_object.in['num_extents'] == 1
104
- end
105
102
  loop do
106
- header = DirectoryDataHeader.new(@data[data_pointer..@sb.block_size * block_number], @sb)
107
- block_pointer = header.header_end
103
+ begin
104
+ header = DirectoryDataHeader.new(@data[data_pointer..@sb.block_size * block_number], @sb)
105
+ rescue => err
106
+ $log.error("Invalid DirectoryDataHeader encountered: #{err}. Skipping.")
107
+ break
108
+ end
109
+ block_pointer = header.header_end
108
110
  data_pointer += header.header_end
109
111
  loop do
110
112
  break if block_pointer > last_directory_space
@@ -122,7 +124,9 @@ module XFS
122
124
 
123
125
  def glob_entries_by_linked_list
124
126
  return {} if @data.nil?
125
- if @inode_object.data_method == :extents || @inode_object.data_method == :btree
127
+ if @inode_object.data_method == :extents && @inode_object.in['num_extents'] == 1
128
+ return glob_single_extent_entries_by_linked_list
129
+ elsif @inode_object.data_method == :extents || @inode_object.data_method == :btree
126
130
  return glob_extent_or_btree_entries_by_linked_list
127
131
  elsif @inode_object.data_method == :local
128
132
  return glob_short_form_entries_by_linked_list
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.7".freeze
3
+ VERSION = "0.2.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest